2011-01-05 16:19:42 +00:00
|
|
|
|
2011-12-24 10:34:35 +00:00
|
|
|
check_library_exists(rt clock_gettime "" HAVE_CLOCK_GETTIME)
|
|
|
|
|
2011-10-18 11:14:20 +00:00
|
|
|
add_executable(GPSsmooth gps.cxx gps.hxx gps_main.cxx)
|
|
|
|
add_executable(MIDGsmooth MIDG-II.cxx MIDG-II.hxx MIDG_main.cxx)
|
|
|
|
add_executable(UGsmooth
|
|
|
|
UGear.cxx UGear.hxx
|
|
|
|
UGear_command.cxx UGear_command.hxx
|
|
|
|
UGear_main.cxx
|
|
|
|
UGear_telnet.cxx
|
|
|
|
UGear_telnet.hxx)
|
2011-01-05 16:19:42 +00:00
|
|
|
|
2011-12-24 10:34:35 +00:00
|
|
|
if(HAVE_CLOCK_GETTIME)
|
|
|
|
target_link_libraries(GPSsmooth rt)
|
|
|
|
endif(HAVE_CLOCK_GETTIME)
|
|
|
|
|
2011-09-01 19:05:50 +00:00
|
|
|
target_link_libraries(GPSsmooth
|
2011-09-08 12:59:40 +00:00
|
|
|
${SIMGEAR_CORE_LIBRARIES}
|
2011-01-05 16:19:42 +00:00
|
|
|
${PLIB_SG_LIBRARY}
|
|
|
|
${PLIB_UL_LIBRARY}
|
2011-09-11 09:22:10 +00:00
|
|
|
${SIMGEAR_CORE_LIBRARY_DEPENDENCIES}
|
2011-11-29 10:24:33 +00:00
|
|
|
${ZLIB_LIBRARY}
|
2011-01-05 16:19:42 +00:00
|
|
|
${WINMM_LIBRARY}
|
|
|
|
)
|
|
|
|
|
2011-12-24 10:34:35 +00:00
|
|
|
if(HAVE_CLOCK_GETTIME)
|
|
|
|
target_link_libraries(MIDGsmooth rt)
|
|
|
|
endif(HAVE_CLOCK_GETTIME)
|
|
|
|
|
2011-09-01 19:05:50 +00:00
|
|
|
target_link_libraries(MIDGsmooth
|
2011-09-08 12:59:40 +00:00
|
|
|
${SIMGEAR_CORE_LIBRARIES}
|
2011-01-05 16:19:42 +00:00
|
|
|
${PLIB_SG_LIBRARY}
|
|
|
|
${PLIB_UL_LIBRARY}
|
|
|
|
${WINMM_LIBRARY}
|
2011-11-29 10:24:33 +00:00
|
|
|
${ZLIB_LIBRARY}
|
2011-09-11 09:22:10 +00:00
|
|
|
${SIMGEAR_CORE_LIBRARY_DEPENDENCIES}
|
2011-01-05 16:19:42 +00:00
|
|
|
)
|
|
|
|
|
2011-12-24 10:34:35 +00:00
|
|
|
if(HAVE_CLOCK_GETTIME)
|
|
|
|
target_link_libraries(UGsmooth rt)
|
|
|
|
endif(HAVE_CLOCK_GETTIME)
|
|
|
|
|
2011-09-01 19:05:50 +00:00
|
|
|
target_link_libraries(UGsmooth
|
2011-09-08 12:59:40 +00:00
|
|
|
${SIMGEAR_CORE_LIBRARIES}
|
2011-01-05 16:19:42 +00:00
|
|
|
${PLIB_SG_LIBRARY}
|
|
|
|
${PLIB_UL_LIBRARY}
|
|
|
|
${WINMM_LIBRARY}
|
2011-11-29 10:24:33 +00:00
|
|
|
${ZLIB_LIBRARY}
|
2011-09-11 09:22:10 +00:00
|
|
|
${SIMGEAR_CORE_LIBRARY_DEPENDENCIES}
|
2011-01-05 16:19:42 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
install(TARGETS GPSsmooth MIDGsmooth UGsmooth RUNTIME DESTINATION bin)
|