45 lines
962 B
CMake
45 lines
962 B
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}")
|
|
|
|
|
|
### 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)
|