owlps/CMakeLists.txt

62 lines
1.2 KiB
CMake

cmake_minimum_required(VERSION 2.8)
project(OwlPS)
### Build paths ###
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin")
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib")
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib")
# Path for the generated header files
set(GENERATED_INCLUDE "${PROJECT_BINARY_DIR}/include")
include_directories("${GENERATED_INCLUDE}")
### Options ###
option (DEBUG
"Enable debug code"
on)
if (DEBUG)
add_definitions(-DDEBUG)
endif (DEBUG)
option (NDEBUG
"Enable no-debug mode (for assert() and others)"
off)
if (NDEBUG)
add_definitions(-DNDEBUG)
endif (NDEBUG)
### Libraries ###
add_subdirectory(libowlps)
include_directories(libowlps)
add_subdirectory(libowlps-client)
include_directories(libowlps-client)
add_subdirectory(libowlps-resultreader)
include_directories(libowlps-resultreader)
### Programs ###
add_subdirectory(owlps-aggregator)
add_subdirectory(owlps-client)
if (${CMAKE_SYSTEM_NAME} STREQUAL Linux)
add_subdirectory(owlps-listener)
else()
message(WARNING
"OwlPS Listener can be built only for Linux systems")
endif()
#add_subdirectory(owlps-positioner)
add_subdirectory(owlps-udp-to-http)