From 6dbf10c6235ae43f2ffb5fadaebadd0d212a9cbb Mon Sep 17 00:00:00 2001 From: Johannes Wendel Date: Thu, 25 Apr 2019 14:48:04 +0200 Subject: [PATCH] adapted cmake file --- .idea/workspace.xml | 132 +++++++++-------------------------- FlippR-Driver/CMakeLists.txt | 5 +- 2 files changed, 37 insertions(+), 100 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index a861941..fd229ea 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -12,24 +12,7 @@ - - - - - - - - - - - - - - - - - - + - + - @@ -371,7 +307,7 @@ - + @@ -744,6 +680,23 @@ + + + + + + + + + + + + + + + + + @@ -754,6 +707,13 @@ + + + + + + + @@ -762,32 +722,8 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - + + diff --git a/FlippR-Driver/CMakeLists.txt b/FlippR-Driver/CMakeLists.txt index 9373a55..b1c92ce 100644 --- a/FlippR-Driver/CMakeLists.txt +++ b/FlippR-Driver/CMakeLists.txt @@ -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()