2 check_library_exists(rt clock_gettime "" HAVE_CLOCK_GETTIME)
4 add_executable(GPSsmooth gps.cxx gps.hxx gps_main.cxx)
5 add_executable(MIDGsmooth MIDG-II.cxx MIDG-II.hxx MIDG_main.cxx)
6 add_executable(UGsmooth
8 UGear_command.cxx UGear_command.hxx
13 if(HAVE_CLOCK_GETTIME)
14 target_link_libraries(GPSsmooth rt)
15 endif(HAVE_CLOCK_GETTIME)
17 target_link_libraries(GPSsmooth
18 ${SIMGEAR_CORE_LIBRARIES}
21 ${SIMGEAR_CORE_LIBRARY_DEPENDENCIES}
26 if(HAVE_CLOCK_GETTIME)
27 target_link_libraries(MIDGsmooth rt)
28 endif(HAVE_CLOCK_GETTIME)
30 target_link_libraries(MIDGsmooth
31 ${SIMGEAR_CORE_LIBRARIES}
36 ${SIMGEAR_CORE_LIBRARY_DEPENDENCIES}
39 if(HAVE_CLOCK_GETTIME)
40 target_link_libraries(UGsmooth rt)
41 endif(HAVE_CLOCK_GETTIME)
43 target_link_libraries(UGsmooth
44 ${SIMGEAR_CORE_LIBRARIES}
49 ${SIMGEAR_CORE_LIBRARY_DEPENDENCIES}
52 install(TARGETS GPSsmooth MIDGsmooth UGsmooth RUNTIME DESTINATION bin)