2018-03-25 14:29:02 +02:00
|
|
|
function(setup_fgfs_embedded_resources)
|
|
|
|
# On Windows, make sure fgrcc can be run (it needs third-party libraries)
|
|
|
|
if(MSVC)
|
|
|
|
if(MSVC_3RDPARTY_ROOT AND MSVC_3RDPARTY_DIR)
|
2018-04-16 15:23:54 +01:00
|
|
|
set(CMAKE_MSVCIDE_RUN_PATH ${MSVC_3RDPARTY_ROOT}/${MSVC_3RDPARTY_DIR}/bin PARENT_SCOPE)
|
2018-03-25 14:29:02 +02:00
|
|
|
else()
|
|
|
|
message(FATAL_ERROR
|
|
|
|
"Either MSVC_3RDPARTY_ROOT or MSVC_3RDPARTY_DIR is empty or unset")
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
endfunction()
|