adapted cmake file
This commit is contained in:
@@ -137,14 +137,15 @@ target_include_directories(Catch INTERFACE ${CATCH_INCLUDE_DIR})
|
||||
|
||||
####################### THREAD ############################
|
||||
find_package(Threads REQUIRED)
|
||||
|
||||
if(NOT CMAKE_THREAD_LIBS_INIT)
|
||||
message(FATAL_ERROR, "Could not find libthread")
|
||||
endif()
|
||||
target_link_libraries(${PROJECT_NAME} PRIVATE ${Threads_LIBRARIES})
|
||||
|
||||
####################### POCO ##############################
|
||||
include(${CMAKE_SOURCE_DIR}/lib/PocoConfig.cmake)
|
||||
#find_package(Poco REQUIRED COMPONENTS Foundation Net JSON )
|
||||
find_package(Poco REQUIRED COMPONENTS Foundation Net JSON )
|
||||
|
||||
if(NOT Poco_FOUND)
|
||||
message(FATAL_ERROR, "Could not find libPoco")
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user