25928bf614
Allow /bin install directory to be overriden. Debian for example uses this to install FlightGear to /usr/games/ instead of /usr/bin/ https://cmake.org/cmake/help/latest/module/GNUInstallDirs.html
28 lines
562 B
CMake
28 lines
562 B
CMake
add_executable(fgai
|
|
fgai.cxx
|
|
HLAAircraft.cxx
|
|
HLAAircraftClass.cxx
|
|
HLAAirVehicle.cxx
|
|
HLAAirVehicleClass.cxx
|
|
AIBVHPager.cxx
|
|
AIEnvironment.cxx
|
|
AIManager.cxx
|
|
AIObject.cxx
|
|
AIPhysics.cxx
|
|
HLABaloon.cxx
|
|
HLABaloonClass.cxx
|
|
HLAMPAircraft.cxx
|
|
HLAMPAircraftClass.cxx
|
|
HLASceneObject.cxx
|
|
HLASceneObjectClass.cxx
|
|
)
|
|
|
|
target_link_libraries(fgai
|
|
${SIMGEAR_LIBRARIES}
|
|
${OPENSCENEGRAPH_LIBRARIES}
|
|
${OPENGL_LIBRARIES}
|
|
${RTI_LIBRARIES}
|
|
${SIMGEAR_CORE_LIBRARY_DEPENDENCIES}
|
|
)
|
|
|
|
install(TARGETS fgai RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
|