3 set( RESOURCE_FILE flightgear.rc )
22 screensaver_control.cxx
40 AircraftDirVisitorBase.hxx
41 screensaver_control.hxx
44 get_property(FG_SOURCES GLOBAL PROPERTY FG_SOURCES)
45 get_property(FG_HEADERS GLOBAL PROPERTY FG_HEADERS)
47 link_directories ( ${Boost_LIBRARY_DIRS} )
49 get_property(FG_GROUPS_C GLOBAL PROPERTY FG_GROUPS_C)
50 string(REPLACE "@" ";" groups ${FG_GROUPS_C} )
52 string(REPLACE "#" ";" g2 ${g})
55 source_group("${name}\\Sources" FILES ${g2})
58 get_property(FG_GROUPS_H GLOBAL PROPERTY FG_GROUPS_H)
59 string(REPLACE "@" ";" groups ${FG_GROUPS_H} )
61 string(REPLACE "#" ";" g2 ${g})
64 source_group("${name}\\Headers" FILES ${g2})
67 source_group("Main\\Headers" FILES ${HEADERS})
68 source_group("Main\\Sources" FILES ${SOURCES})
70 # important we pass WIN32 here so the console is optional. Other
71 # platforms ignore this option. If a console is needed we allocate
72 # it manually via AllocConsole()
73 add_executable(fgfs WIN32 ${SOURCES} ${FG_SOURCES} ${FG_HEADERS} ${HEADERS})
75 get_property(FG_LIBS GLOBAL PROPERTY FG_LIBS)
76 #message(STATUS "fg libs ${FG_LIBS}")
77 #message(STATUS "OSG libs ${OPENSCENEGRAPH_LIBRARIES}")
78 #message(STATUS "SG libs ${SIMGEAR_LIBRARIES}")
81 set(HLA_LIBRARIES ${RTI_LIBRARIES})
87 # FIXME - remove once JSBSim doesn't expose private headers
88 include_directories(${PROJECT_SOURCE_DIR}/src/FDM/JSBSim)
90 target_link_libraries(fgfs JSBSim)
93 target_link_libraries(fgfs iaxclient_lib ${OPENAL_LIBRARY})
96 target_link_libraries(fgfs ${DBUS_LIBRARIES})
98 if(FG_HAVE_GPERFTOOLS)
99 include_directories(${GooglePerfTools_INCLUDE_DIR})
100 target_link_libraries(fgfs ${GooglePerfTools_LIBRARIES})
104 target_link_libraries(fgfs ${CRASHRPT_LIBRARY})
107 target_link_libraries(fgfs
110 ${OPENSCENEGRAPH_LIBRARIES}
115 ${EVENT_INPUT_LIBRARIES}
116 ${SIMGEAR_CORE_LIBRARY_DEPENDENCIES}
117 ${SIMGEAR_SCENE_LIBRARY_DEPENDENCIES}
121 install(TARGETS fgfs RUNTIME DESTINATION bin)
124 add_executable(metar metar_main.cxx)
125 target_link_libraries(metar
127 ${SIMGEAR_CORE_LIBRARY_DEPENDENCIES}
128 ${SIMGEAR_SCENE_LIBRARY_DEPENDENCIES}
132 install(TARGETS metar RUNTIME DESTINATION bin)