restored OUtputPinController

This commit is contained in:
Jonas Zeunert
2019-05-06 21:31:17 +02:00
parent bc583a5a92
commit 1b90bf7518
12 changed files with 103 additions and 9 deletions

View File

@@ -1,7 +1,8 @@
####################### OPTIONS #########################
option(CROSS_COMPILE "Enables crosscompiling for raspberry pi" OFF)
option(BUILD_SHARED_LIB "Build a shared lib instead of a static." OFF)
option(ENABLE_TESTING "Enables testing." ON)
option(CROSS_COMPILE "Enables crosscompiling for raspberry pi" OFF)
option(BUILD_NETWORKING "Build socket communication executable." ON)
option(BUILD_CLI "Makes a basic testing cli" OFF)
#################### CONFIGURATION ######################
@@ -144,19 +145,15 @@ if(NOT CMAKE_THREAD_LIBS_INIT)
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)
if(BUILD_NETWORKING)
add_subdirectory(networking)
endif(BUILD_NETWORKING)
if(BUILD_CLI)
add_subdirectory(cli)
endif(BUILD_CLI)