]> git.mxchange.org Git - flightgear.git/commitdiff
Fix YAsim linkage.
authorJames Turner <zakalawe@mac.com>
Mon, 26 Mar 2012 15:09:21 +0000 (16:09 +0100)
committerJames Turner <zakalawe@mac.com>
Mon, 26 Mar 2012 15:09:21 +0000 (16:09 +0100)
src/FDM/YASim/CMakeLists.txt

index b5c218ca2d20b857aaf5f1739ccfd48cbfef3c7b..d6638966f02024933a42db001f602bdbdf9d6671 100644 (file)
@@ -1,11 +1,10 @@
 include(FlightGearComponent)
 
-set(SOURCES
+set(COMMON
        Airplane.cpp
        Atmosphere.cpp
        ControlMap.cpp
        FGFDM.cpp
-       FGGround.cpp
        Gear.cpp
        Glue.cpp
        Ground.cpp
@@ -28,15 +27,20 @@ set(SOURCES
        TurbineEngine.cpp
        Turbulence.cpp
        Wing.cpp
+)
+
+set(SOURCES
+       ${COMMON}
        YASim.cxx
+       FGGround.cpp
 )
 
-flightgear_component(YASim "${SOURCES}")
+flightgear_component(YASim  "${SOURCES}")
     
-add_executable(yasim yasim-test.cpp ${SOURCES})
+add_executable(yasim yasim-test.cpp ${COMMON})
 
 target_link_libraries(yasim 
        ${SIMGEAR_CORE_LIBRARIES}
     ${SIMGEAR_CORE_LIBRARY_DEPENDENCIES})
 
-install(TARGETS yasim RUNTIME DESTINATION bin)
\ No newline at end of file
+install(TARGETS yasim RUNTIME DESTINATION bin)