Fix YAsim linkage.
This commit is contained in:
parent
a38362646d
commit
59253531bc
1 changed files with 10 additions and 6 deletions
|
@ -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
|
||||
YASim.cxx
|
||||
)
|
||||
|
||||
flightgear_component(YASim "${SOURCES}")
|
||||
set(SOURCES
|
||||
${COMMON}
|
||||
YASim.cxx
|
||||
FGGround.cpp
|
||||
)
|
||||
|
||||
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)
|
||||
install(TARGETS yasim RUNTIME DESTINATION bin)
|
||||
|
|
Loading…
Add table
Reference in a new issue