set(SIMGEAR_CORE_LIBRARY_DEPENDENCIES
${CMAKE_THREAD_LIBS_INIT}
- ${ZLIB_LIBRARY})
+ ${ZLIB_LIBRARY}
+ ${LIBSVN_LIBRARIES})
set(SIMGEAR_SCENE_LIBRARY_DEPENDENCIES
${ALUT_LIBRARY}
- ${OPENAL_LIBRARY}
- ${LIBSVN_LIBRARIES})
+ ${OPENAL_LIBRARY})
if(WIN32)
list(APPEND SIMGEAR_CORE_LIBRARY_DEPENDENCIES ws2_32.lib)
include(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(LIBSVN DEFAULT_MSG LIBSVN_LIBRARIES LIBSVN_INCLUDE_DIR)
- if(NOT LIBSVN_FOUND)
+ if(NOT LIBSVN_FOUND)
set(LIBSVN_LIBRARIES "")
- endif(NOT LIBSVN_FOUND)
+ endif(NOT LIBSVN_FOUND)
+
endif(HAVE_APR_CONFIG OR MSVC)
include(FlightGearComponent)
set(SOURCES
- Airplane.cpp
+ Airplane.cpp
Atmosphere.cpp
ControlMap.cpp
FGFDM.cpp
Turbulence.cpp
Wing.cpp
YASim.cxx
- )
+)
flightgear_component(YASim "${SOURCES}")
-
+
add_executable(yasim yasim-test.cpp)
target_link_libraries(yasim
fgYASim
${SIMGEAR_CORE_LIBRARIES}
- ${SIMGEAR_CORE_LIBRARY_DEPENDENCIES})
+ ${SIMGEAR_CORE_LIBRARY_DEPENDENCIES})
install(TARGETS yasim RUNTIME DESTINATION bin)
-
-
install(TARGETS fgfs RUNTIME DESTINATION bin)
-check_library_exists(rt clock_gettime "" HAVE_CLOCK_GETTIME)
add_executable(metar metar_main.cxx)
-if(HAVE_CLOCK_GETTIME)
- target_link_libraries(metar rt)
-endif(HAVE_CLOCK_GETTIME)
+
target_link_libraries(metar
${SIMGEAR_LIBRARIES}
${SIMGEAR_CORE_LIBRARY_DEPENDENCIES}
)
install(TARGETS metar RUNTIME DESTINATION bin)
-
-check_library_exists(rt clock_gettime "" HAVE_CLOCK_GETTIME)
-
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_telnet.cxx
UGear_telnet.hxx)
-if(HAVE_CLOCK_GETTIME)
- target_link_libraries(GPSsmooth rt)
-endif(HAVE_CLOCK_GETTIME)
-
target_link_libraries(GPSsmooth
${SIMGEAR_CORE_LIBRARIES}
${PLIB_SG_LIBRARY}
${WINMM_LIBRARY}
)
-if(HAVE_CLOCK_GETTIME)
- target_link_libraries(MIDGsmooth rt)
-endif(HAVE_CLOCK_GETTIME)
-
target_link_libraries(MIDGsmooth
${SIMGEAR_CORE_LIBRARIES}
${PLIB_SG_LIBRARY}
${SIMGEAR_CORE_LIBRARY_DEPENDENCIES}
)
-if(HAVE_CLOCK_GETTIME)
- target_link_libraries(UGsmooth rt)
-endif(HAVE_CLOCK_GETTIME)
-
target_link_libraries(UGsmooth
${SIMGEAR_CORE_LIBRARIES}
${PLIB_SG_LIBRARY}
-
add_executable(terrasync terrasync.cxx)
target_link_libraries(terrasync
${SIMGEAR_CORE_LIBRARY_DEPENDENCIES}
)
-if(LIBSVN_FOUND)
- target_link_libraries(terrasync ${LIBSVN_LIBRARIES})
- set_property(TARGET terrasync APPEND PROPERTY COMPILE_FLAGS "${APR_CFLAGS}")
-endif()
-
-
install(TARGETS terrasync RUNTIME DESTINATION bin)
#include <fstream>
#include <string>
+#include <simgear/math/SGMath.hxx>
#include <simgear/io/raw_socket.hxx>
#include <simgear/scene/tsync/terrasync.hxx>