adapted cmake file

This commit is contained in:
Johannes Wendel
2019-04-25 14:48:04 +02:00
parent 263991af5a
commit 6dbf10c623
2 changed files with 37 additions and 100 deletions

View File

@@ -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()