CMake: compile Positioner
This commit is contained in:
parent
688580c7d2
commit
0de28cb3eb
|
@ -87,6 +87,6 @@ else()
|
|||
"OwlPS Listener can be built only for Linux systems")
|
||||
endif()
|
||||
|
||||
#add_subdirectory(owlps-positioner)
|
||||
add_subdirectory(owlps-positioner)
|
||||
|
||||
add_subdirectory(owlps-udp-to-http)
|
||||
|
|
1
TODO.t2t
1
TODO.t2t
|
@ -59,7 +59,6 @@ Work to do in OwlPS
|
|||
- libraries: version numbers (sonames) and symbolic links
|
||||
- installation targets
|
||||
- static targets
|
||||
- compile Positioner
|
||||
|
||||
- Support string-based positioning requests
|
||||
|
||||
|
|
|
@ -0,0 +1,75 @@
|
|||
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})
|
Loading…
Reference in New Issue