mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-08-06 09:52:25 +02:00
copy to server_directory/bin when cross compiling
This commit is contained in:
@@ -80,6 +80,14 @@ install(TARGETS matterhornDetectorServer
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
)
|
||||
|
||||
if(CMAKE_TOOLCHAIN_FILE AND NOT CMAKE_TOOLCHAIN_FILE STREQUAL "") # copy the server binary
|
||||
add_custom_command(TARGET matterhornDetectorServer POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:matterhornDetectorServer>
|
||||
${CMAKE_CURRENT_BINARY_DIR}/bin/matterhornDetectorServer
|
||||
)
|
||||
endif()
|
||||
|
||||
|
||||
if(SLS_USE_TESTS)
|
||||
add_subdirectory(tests)
|
||||
|
||||
Reference in New Issue
Block a user