From 52572ef1f36cf7852e70f0d2e13e6f1a96c5b304 Mon Sep 17 00:00:00 2001 From: Geoff McLane Date: Wed, 11 Jan 2017 23:51:38 +0100 Subject: [PATCH] Add back a JSBSim.exe build, install --- src/FDM/JSBSim/CMakeLists.txt | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/FDM/JSBSim/CMakeLists.txt b/src/FDM/JSBSim/CMakeLists.txt index 334714843..f203b4a4e 100644 --- a/src/FDM/JSBSim/CMakeLists.txt +++ b/src/FDM/JSBSim/CMakeLists.txt @@ -197,4 +197,16 @@ set(SOURCES add_library(JSBSim STATIC ${SOURCES} ${HEADERS}) target_link_libraries(JSBSim SimGearCore) -target_include_directories(JSBSim PRIVATE ${PROJECT_SOURCE_DIR}/src/FDM/JSBSim) +target_include_directories(JSBSim PRIVATE ${CMAKE_SOURCE_DIR}/src/FDM/JSBSim) + +add_executable(JSBsim_bin JSBSim.cpp ) +set_target_properties(JSBsim_bin PROPERTIES OUTPUT_NAME "JSBSim" ) +target_Link_libraries(JSBsim_bin JSBSim) +target_include_directories(JSBsim_bin PRIVATE ${CMAKE_SOURCE_DIR}/src/FDM/JSBSim) + +if (MSVC) + set_target_properties(JSBsim_bin PROPERTIES DEBUG_POSTFIX d) +endif () +install(TARGETS JSBsim_bin RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) + +# eof