project(FlightGear)
+set(CMAKE_DEBUG_POSTFIX "d" CACHE STRING "add a postfix, usually d on windows")
+set(CMAKE_RELEASE_POSTFIX "" CACHE STRING "add a postfix, usually empty on windows")
+set(CMAKE_RELWITHDEBINFO_POSTFIX "rd" CACHE STRING "add a postfix, usually empty on windows")
+set(CMAKE_MINSIZEREL_POSTFIX "s" CACHE STRING "add a postfix, usually empty on windows")
+
# read 'version' file into a variable (stripping any newlines or spaces)
file(READ version versionFile)
string(STRIP ${versionFile} FLIGHTGEAR_VERSION)
find_package(OpenAL REQUIRED)
find_package(ALUT REQUIRED)
find_package(OpenSceneGraph 2.8.2 REQUIRED osgText osgSim osgDB osgParticle osgFX osgUtil osgViewer osgGA)
+find_package(FLTK)
find_package(PLIB REQUIRED puaux pu js fnt)
find_package(SimGear 2.0.0 REQUIRED)
endif(MSVC)
set(NOMINMAX 1)
+ set( WINSOCK_LIBRARY "ws2_32.lib" )
endif(WIN32)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${WARNING_FLAGS} ${MSVC_FLAGS} -D_REENTRANT")
--- /dev/null
+
+add_executable(GPSsmooth gps.cxx gps_main.cxx)
+add_executable(MIDGsmooth MIDG-II.cxx MIDG_main.cxx)
+add_executable(UGsmooth UGear.cxx UGear_command.cxx UGear_main.cxx UGear_telnet.cxx)
+
+target_link_libraries(GPSsmooth
+ ${SIMGEAR_DEBUG_LIBRARY}
+ ${SIMGEAR_IO_LIBRARY}
+ ${SIMGEAR_MISC_LIBRARY}
+ ${SIMGEAR_STRUCTURE_LIBRARY}
+ ${SIMGEAR_TIMING_LIBRARY}
+ ${PLIB_SG_LIBRARY}
+ ${PLIB_UL_LIBRARY}
+ ${ZLIB_LIBRARIES}
+ ${WINMM_LIBRARY}
+ ${WINSOCK_LIBRARY}
+ ${ZLIB_LIBRARIES}
+)
+
+target_link_libraries(MIDGsmooth
+ ${SIMGEAR_DEBUG_LIBRARY}
+ ${SIMGEAR_IO_LIBRARY}
+ ${SIMGEAR_MATH_LIBRARY}
+ ${SIMGEAR_SERIAL_LIBRARY}
+ ${SIMGEAR_STRUCTURE_LIBRARY}
+ ${SIMGEAR_TIMING_LIBRARY}
+ ${PLIB_SG_LIBRARY}
+ ${PLIB_UL_LIBRARY}
+ ${WINMM_LIBRARY}
+ ${WINSOCK_LIBRARY}
+)
+
+target_link_libraries(UGsmooth
+ ${SIMGEAR_DEBUG_LIBRARY}
+ ${SIMGEAR_IO_LIBRARY}
+ ${SIMGEAR_MATH_LIBRARY}
+ ${SIMGEAR_MISC_LIBRARY}
+ ${SIMGEAR_SERIAL_LIBRARY}
+ ${SIMGEAR_STRUCTURE_LIBRARY}
+ ${SIMGEAR_TIMING_LIBRARY}
+ ${PLIB_SG_LIBRARY}
+ ${PLIB_UL_LIBRARY}
+ ${WINMM_LIBRARY}
+ ${WINSOCK_LIBRARY}
+ ${ZLIB_LIBRARIES}
+)
+
+install(TARGETS GPSsmooth MIDGsmooth UGsmooth RUNTIME DESTINATION bin)