4 set( RESOURCE_FILE flightgear64.rc )
6 set( RESOURCE_FILE flightgear.rc )
45 get_property(FG_SOURCES GLOBAL PROPERTY FG_SOURCES)
46 get_property(FG_HEADERS GLOBAL PROPERTY FG_HEADERS)
48 link_directories ( ${Boost_LIBRARY_DIRS} )
50 get_property(FG_GROUPS_C GLOBAL PROPERTY FG_GROUPS_C)
51 string(REPLACE "@" ";" groups ${FG_GROUPS_C} )
53 string(REPLACE "#" ";" g2 ${g})
56 source_group("${name}\\Sources" FILES ${g2})
59 get_property(FG_GROUPS_H GLOBAL PROPERTY FG_GROUPS_H)
60 string(REPLACE "@" ";" groups ${FG_GROUPS_H} )
62 string(REPLACE "#" ";" g2 ${g})
65 source_group("${name}\\Headers" FILES ${g2})
68 source_group("Main\\Headers" FILES ${HEADERS})
69 source_group("Main\\Sources" FILES ${SOURCES})
70 add_executable(fgfs ${SOURCES} ${FG_SOURCES} ${FG_HEADERS} ${HEADERS})
72 # disable sqlite3 dynamic lib support
73 # this should really be a SOURCE property, but the way we handle
74 # Fcomponent sources is making that tricky
75 add_definitions(-DSQLITE_OMIT_LOAD_EXTENSION)
77 get_property(FG_LIBS GLOBAL PROPERTY FG_LIBS)
78 #message(STATUS "fg libs ${FG_LIBS}")
79 #message(STATUS "OSG libs ${OPENSCENEGRAPH_LIBRARIES}")
80 #message(STATUS "SG libs ${SIMGEAR_LIBRARIES}")
83 set(HLA_LIBRARIES ${RTI_LIBRARIES})
89 # FIXME - remove once JSBSim doesn't expose private headers
90 include_directories(${PROJECT_SOURCE_DIR}/src/FDM/JSBSim)
92 target_link_libraries(fgfs JSBSim)
95 if(FG_HAVE_GPERFTOOLS)
96 include_directories(${GooglePerfTools_INCLUDE_DIR})
97 target_link_libraries(fgfs ${GooglePerfTools_LIBRARIES})
100 target_link_libraries(fgfs
103 ${OPENSCENEGRAPH_LIBRARIES}
108 ${EVENT_INPUT_LIBRARIES}
109 ${SIMGEAR_CORE_LIBRARY_DEPENDENCIES}
110 ${SIMGEAR_SCENE_LIBRARY_DEPENDENCIES}
114 install(TARGETS fgfs RUNTIME DESTINATION bin)
117 add_executable(metar metar_main.cxx)
118 target_link_libraries(metar
120 ${SIMGEAR_CORE_LIBRARY_DEPENDENCIES}
121 ${SIMGEAR_SCENE_LIBRARY_DEPENDENCIES}
125 install(TARGETS metar RUNTIME DESTINATION bin)