1
0
Fork 0

Add back a JSBSim.exe build, install

This commit is contained in:
Geoff McLane 2017-01-11 23:51:38 +01:00 committed by James Turner
parent c7391668e6
commit 52572ef1f3

View file

@ -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