owlps/owlps-positioner/CMakeLists.txt

76 lines
1.7 KiB
CMake
Raw Normal View History

2013-05-19 17:03:21 +02:00
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(EXTRA_LIBS ${EXTRA_LIBS} ${Boost_LIBRARIES} m)
# On Linux and other GNU systems (e.g. GNU/kFreeBSD), we need -lrt for
# clock_gettime()
string(REGEX MATCH "^GNU" GNU_SYSTEM ${CMAKE_SYSTEM_NAME})
if ("${GNU_SYSTEM}" OR ${CMAKE_SYSTEM_NAME} STREQUAL Linux)
set(EXTRA_LIBS ${EXTRA_LIBS} rt)
endif()
set(OWLPS_POSITIONER_SRC_FILES
src/accesspoint.cc
src/accesspointsreadercsv.cc
src/area.cc
src/autocalibration.cc
src/building.cc
src/calibrationrequest.cc
src/cartographyalgorithm.cc
src/configuration.cc
src/csvfilereader.cc
src/csvstringreader.cc
src/direction.cc
src/fbcm.cc
src/frbhmbasic.cc
src/input.cc
src/inputcsv.cc
src/inputdatareader.cc
src/inputlogcsv.cc
src/inputmedium.cc
src/inputudpsocket.cc
src/interlinknetworks.cc
src/measurement.cc
src/minmax.cc
src/mobile.cc
src/mobilesreadercsv.cc
src/nss.cc
src/output.cc
src/outputcsv.cc
src/outputnetworksocket.cc
src/outputtcpsocketevaal.cc
src/outputterminal.cc
src/outputudpsocket.cc
src/owlps-positionerd.cc
src/point3d.cc
src/posexcept.cc
src/positioning.cc
src/posutil.cc
src/realposition.cc
src/referencepoint.cc
src/request.cc
src/result.cc
src/resultlist.cc
src/stock.cc
src/textfilereader.cc
src/textfilewriter.cc
src/timestamp.cc
src/topologyreadercsv.cc
src/trilaterationalgorithm.cc
src/userinterface.cc
src/waypoint.cc
src/wifidevice.cc
)
add_executable(owlps-positionerd
${OWLPS_POSITIONER_SRC_FILES})
target_link_libraries(owlps-positionerd
libowlps.so
${EXTRA_LIBS})
add_executable(owlps-positionerd.semistatic EXCLUDE_FROM_ALL
${OWLPS_POSITIONER_SRC_FILES})
target_link_libraries(owlps-positionerd.semistatic
libowlps.a
${EXTRA_LIBS})