add_executable(myexecutable ${SOURCES} ${HEADERS})
target_link_libraries(myexecutable .... libraries ... )
- install(TARGETS myexecutable RUNTIME DESTINATION bin)
+ install(TARGETS myexecutable RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
(If the executable should not be installed, omit the final line above)
${SIMGEAR_CORE_LIBRARIES}
${SIMGEAR_CORE_LIBRARY_DEPENDENCIES})
-install(TARGETS yasim yasim-proptest RUNTIME DESTINATION bin)
+install(TARGETS yasim yasim-proptest RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
endif(ENABLE_TESTS)
${SIMGEAR_CORE_LIBRARY_DEPENDENCIES}
)
- install(TARGETS fgjs RUNTIME DESTINATION bin)
+ install(TARGETS fgjs RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
endif()
if(ENABLE_JS_DEMO)
${SIMGEAR_CORE_LIBRARY_DEPENDENCIES}
)
- install(TARGETS js_demo RUNTIME DESTINATION bin)
+ install(TARGETS js_demo RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
endif()
flightgear_component(Input "${SOURCES}" "${HEADERS}")
\ No newline at end of file
if (APPLE)
install(TARGETS fgfs BUNDLE DESTINATION .)
else()
- install(TARGETS fgfs RUNTIME DESTINATION bin)
+ install(TARGETS fgfs RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
endif()
if(ENABLE_METAR)
${PLATFORM_LIBS}
)
- install(TARGETS metar RUNTIME DESTINATION bin)
+ install(TARGETS metar RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
endif()
${ZLIB_LIBRARY}
)
-install(TARGETS GPSsmooth MIDGsmooth UGsmooth RUNTIME DESTINATION bin)
+install(TARGETS GPSsmooth MIDGsmooth UGsmooth RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
# ${SIMGEAR_CORE_LIBRARY_DEPENDENCIES}
#)
-#install(TARGETS terrasync RUNTIME DESTINATION bin)
+#install(TARGETS terrasync RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
${SIMGEAR_CORE_LIBRARY_DEPENDENCIES}
)
-install(TARGETS fgai RUNTIME DESTINATION bin)
+install(TARGETS fgai RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
${SIMGEAR_CORE_LIBRARY_DEPENDENCIES}
)
-install(TARGETS ${name} RUNTIME DESTINATION bin)
+install(TARGETS ${name} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
${ZLIB_LIBRARY}
)
-install(TARGETS fgelev RUNTIME DESTINATION bin)
+install(TARGETS fgelev RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
include_directories(${PNG_INCLUDE_DIR})
- install(TARGETS fgpanel RUNTIME DESTINATION bin)
+ install(TARGETS fgpanel RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
else()
message(STATUS "glut NOT found, can't build fgpanel")
endif()
${FGVIEWER_RTI_LIBRARIES}
${SIMGEAR_CORE_LIBRARY_DEPENDENCIES}
)
-install(TARGETS fgviewer RUNTIME DESTINATION bin)
+install(TARGETS fgviewer RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
${SIMGEAR_CORE_LIBRARY_DEPENDENCIES}
)
-install(TARGETS stgmerge RUNTIME DESTINATION bin)
+install(TARGETS stgmerge RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})