]> git.mxchange.org Git - flightgear.git/blob - src/FDM/YASim/CMakeLists.txt
FGPUIDialog: fix reading from already free'd memory.
[flightgear.git] / src / FDM / YASim / CMakeLists.txt
1 include(FlightGearComponent)
2
3 set(COMMON
4         Airplane.cpp
5         Atmosphere.cpp
6         ControlMap.cpp
7         FGFDM.cpp
8         Gear.cpp
9         Glue.cpp
10         Ground.cpp
11         Hitch.cpp
12         Hook.cpp
13         Integrator.cpp
14         Jet.cpp
15         Launchbar.cpp
16         Model.cpp
17         PistonEngine.cpp
18         PropEngine.cpp
19         Propeller.cpp
20         RigidBody.cpp
21         Rotor.cpp
22         Rotorpart.cpp
23         SimpleJet.cpp
24         Surface.cpp
25         Thruster.cpp
26         TurbineEngine.cpp
27         Turbulence.cpp
28         Wing.cpp
29         )
30
31 set(SOURCES
32         ${COMMON}
33         YASim.cxx
34         FGGround.cpp
35         )
36
37 flightgear_component(YASim  "${SOURCES}")
38
39 if(ENABLE_TESTS)
40 add_executable(yasim yasim-test.cpp ${COMMON})
41 add_executable(yasim-proptest proptest.cpp ${COMMON})
42
43 target_link_libraries(yasim
44                 ${SIMGEAR_CORE_LIBRARIES}
45                 ${SIMGEAR_CORE_LIBRARY_DEPENDENCIES})
46
47 target_link_libraries(yasim-proptest
48                 ${SIMGEAR_CORE_LIBRARIES}
49                 ${SIMGEAR_CORE_LIBRARY_DEPENDENCIES})
50
51 install(TARGETS yasim yasim-proptest RUNTIME DESTINATION bin)
52
53 endif(ENABLE_TESTS)
54