4 set( RESOURCE_FILE flightgear64.rc )
6 set( RESOURCE_FILE flightgear.rc )
43 get_property(FG_SOURCES GLOBAL PROPERTY FG_SOURCES)
44 get_property(FG_HEADERS GLOBAL PROPERTY FG_HEADERS)
46 link_directories ( ${Boost_LIBRARY_DIRS} )
48 get_property(FG_GROUPS_C GLOBAL PROPERTY FG_GROUPS_C)
49 string(REPLACE "@" ";" groups ${FG_GROUPS_C} )
51 string(REPLACE "#" ";" g2 ${g})
54 source_group("${name}\\Sources" FILES ${g2})
57 get_property(FG_GROUPS_H GLOBAL PROPERTY FG_GROUPS_H)
58 string(REPLACE "@" ";" groups ${FG_GROUPS_H} )
60 string(REPLACE "#" ";" g2 ${g})
63 source_group("${name}\\Headers" FILES ${g2})
66 source_group("Main\\Headers" FILES ${HEADERS})
67 source_group("Main\\Sources" FILES ${SOURCES})
68 add_executable(fgfs ${SOURCES} ${FG_SOURCES} ${FG_HEADERS} ${HEADERS})
70 # disable sqlite3 dynamic lib support
71 # this should really be a SOURCE property, but the way we handle
72 # Fcomponent sources is making that tricky
73 add_definitions(-DSQLITE_OMIT_LOAD_EXTENSION)
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 if(FG_HAVE_GPERFTOOLS)
94 target_link_libraries(fgfs profiler)
97 target_link_libraries(fgfs
100 ${OPENSCENEGRAPH_LIBRARIES}
105 ${EVENT_INPUT_LIBRARIES}
106 ${SIMGEAR_CORE_LIBRARY_DEPENDENCIES}
107 ${SIMGEAR_SCENE_LIBRARY_DEPENDENCIES}
111 install(TARGETS fgfs RUNTIME DESTINATION bin)
113 add_executable(metar metar_main.cxx)
115 target_link_libraries(metar
117 ${SIMGEAR_CORE_LIBRARY_DEPENDENCIES}
118 ${SIMGEAR_SCENE_LIBRARY_DEPENDENCIES}
122 install(TARGETS metar RUNTIME DESTINATION bin)