Merge /u/geoffmc/flightgear/ branch msvc-build3 into next
https://sourceforge.net/p/flightgear/flightgear/merge-requests/182/
This commit is contained in:
commit
8126db050a
1 changed files with 11 additions and 0 deletions
|
@ -1,6 +1,17 @@
|
||||||
add_executable(fgrcc fgrcc.cxx fgrcc.hxx)
|
add_executable(fgrcc fgrcc.cxx fgrcc.hxx)
|
||||||
target_link_libraries(fgrcc SimGearCore ${PLATFORM_LIBS})
|
target_link_libraries(fgrcc SimGearCore ${PLATFORM_LIBS})
|
||||||
|
|
||||||
|
# On Windows, make sure fgrcc can be run (it needs third-party libraries) in add_custom_target
|
||||||
|
if(MSVC)
|
||||||
|
set_target_properties(fgrcc PROPERTIES DEBUG_POSTFIX d)
|
||||||
|
if(MSVC_3RDPARTY_ROOT AND MSVC_3RDPARTY_DIR)
|
||||||
|
set(CMAKE_MSVCIDE_RUN_PATH ${MSVC_3RDPARTY_ROOT}/${MSVC_3RDPARTY_DIR}/bin)
|
||||||
|
else()
|
||||||
|
message(FATAL_ERROR
|
||||||
|
"Either MSVC_3RDPARTY_ROOT or MSVC_3RDPARTY_DIR is empty or unset")
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
add_custom_target(
|
add_custom_target(
|
||||||
embeddedresources
|
embeddedresources
|
||||||
COMMAND
|
COMMAND
|
||||||
|
|
Loading…
Add table
Reference in a new issue