added outputrequesthandler
This commit is contained in:
@@ -96,6 +96,9 @@ endif(BUILD_SHARED_LIB)
|
||||
target_include_directories(${PROJECT_NAME} PRIVATE ${CMAKE_SOURCE_DIR}/src)
|
||||
target_include_directories(${PROJECT_NAME} PUBLIC ${CMAKE_SOURCE_DIR}/include)
|
||||
|
||||
# Set libraries include path
|
||||
target_include_directories(${PROJECT_NAME} PRIVATE ${CMAKE_SOURCE_DIR}/${LIB_DIR})
|
||||
|
||||
######################### BOOST #########################
|
||||
find_package(Boost REQUIRED COMPONENTS ${BOOST_COMPONENTS})
|
||||
if(Boost_FOUND)
|
||||
@@ -107,9 +110,6 @@ else()
|
||||
message (FATAL_ERROR "Can't find Boost.")
|
||||
endif(Boost_FOUND)
|
||||
|
||||
# Set libraries include path
|
||||
target_include_directories(${PROJECT_NAME} PRIVATE ${CMAKE_SOURCE_DIR}/${LIB_DIR})
|
||||
|
||||
##################### WIRING_PI ##########################
|
||||
find_library(wiringPi_LIB wiringPi)
|
||||
if(NOT wiringPi_LIB)
|
||||
@@ -122,25 +122,32 @@ if(NOT crypt_LIB)
|
||||
message(FATAL_ERROR "Could not find crypt library")
|
||||
endif()
|
||||
target_link_libraries(${PROJECT_NAME} PUBLIC ${crypt_LIB})
|
||||
## EASYLOGGING
|
||||
|
||||
##################### EASYLOGGING #########################
|
||||
set(EASYLOGGING_INCLUDE_DIR ${CMAKE_SOURCE_DIR}/${LIB_DIR}/easylogging)
|
||||
add_library(Easylogging STATIC ${EASYLOGGING_INCLUDE_DIR}/easylogging++.cc)
|
||||
|
||||
target_include_directories(${PROJECT_NAME} PUBLIC ${EASYLOGGING_INCLUDE_DIR})
|
||||
target_link_libraries(${PROJECT_NAME} PUBLIC Easylogging)
|
||||
|
||||
## CATCH
|
||||
######################## CATCH ############################
|
||||
set(CATCH_INCLUDE_DIR ${CMAKE_SOURCE_DIR}/tests)
|
||||
add_library(Catch INTERFACE)
|
||||
target_include_directories(Catch INTERFACE ${CATCH_INCLUDE_DIR})
|
||||
|
||||
## THREAD
|
||||
####################### 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 ##############################
|
||||
find_package(Poco REQUIRED COMPONENTS Foundation Net JSON )
|
||||
if(NOT Poco_FOUND)
|
||||
message(FATAL_ERROR, "Could not find libPoco")
|
||||
endif()
|
||||
target_link_libraries(${PROJECT_NAME} PUBLIC Poco::Foundation Poco::Net Poco::JSON)
|
||||
if(ENABLE_TESTING)
|
||||
add_subdirectory(tests)
|
||||
endif(ENABLE_TESTING)
|
||||
|
||||
Reference in New Issue
Block a user