Description: Fix copying applications after build when running on Hurd.
Author: Joachim Bauch <bauch@struktur.de>
--- hm.orig/source/App/Parcat/CMakeLists.txt
+++ hm/source/App/Parcat/CMakeLists.txt
@@ -15,7 +15,7 @@ target_link_libraries( ${EXE_NAME} Threa
 # include the output directory, where the svnrevision.h file is generated
 include_directories(${CMAKE_CURRENT_BINARY_DIR})
 
-if( CMAKE_SYSTEM_NAME STREQUAL "Linux" )
+if( CMAKE_SYSTEM_NAME STREQUAL "Linux" OR CMAKE_SYSTEM_NAME STREQUAL "GNU" )
   add_custom_command( TARGET ${EXE_NAME} POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy
                                                           $<$<CONFIG:Debug>:${CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG}/parcat>
                                                           $<$<CONFIG:Release>:${CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE}/parcat>
@@ -29,4 +29,3 @@ endif()
 
 # set the folder where to place the projects
 set_target_properties( ${EXE_NAME}  PROPERTIES FOLDER app LINKER_LANGUAGE CXX )
-
--- hm.orig/source/App/SEIFilmGrainApp/CMakeLists.txt
+++ hm/source/App/SEIFilmGrainApp/CMakeLists.txt
@@ -29,7 +29,7 @@ include_directories(${CMAKE_CURRENT_BINA
 
 target_link_libraries( ${EXE_NAME} TLibCommon TLibDecoder TLibEncoder Utilities Threads::Threads ${ADDITIONAL_LIBS} )
 
-if( CMAKE_SYSTEM_NAME STREQUAL "Linux" )
+if( CMAKE_SYSTEM_NAME STREQUAL "Linux" OR CMAKE_SYSTEM_NAME STREQUAL "GNU" )
   add_custom_command( TARGET ${EXE_NAME} POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy
                                                           $<$<CONFIG:Debug>:${CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG}/SEIFilmGrainApp>
                                                           $<$<CONFIG:Release>:${CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE}/SEIFilmGrainApp>
--- hm.orig/source/App/SEIRemovalApp/CMakeLists.txt
+++ hm/source/App/SEIRemovalApp/CMakeLists.txt
@@ -29,7 +29,7 @@ include_directories(${CMAKE_CURRENT_BINA
 
 target_link_libraries( ${EXE_NAME} TLibCommon TLibDecoder Utilities Threads::Threads ${ADDITIONAL_LIBS} )
 
-if( CMAKE_SYSTEM_NAME STREQUAL "Linux" )
+if( CMAKE_SYSTEM_NAME STREQUAL "Linux" OR CMAKE_SYSTEM_NAME STREQUAL "GNU" )
   add_custom_command( TARGET ${EXE_NAME} POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy
                                                           $<$<CONFIG:Debug>:${CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG}/SEIRemovalApp>
                                                           $<$<CONFIG:Release>:${CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE}/SEIRemovalApp>
--- hm.orig/source/App/TAppDecoder/CMakeLists.txt
+++ hm/source/App/TAppDecoder/CMakeLists.txt
@@ -44,7 +44,7 @@ endif()
 
 target_link_libraries( ${EXE_NAME} TLibCommon TLibDecoder Utilities Threads::Threads ${ADDITIONAL_LIBS} )
 
-if( CMAKE_SYSTEM_NAME STREQUAL "Linux" )
+if( CMAKE_SYSTEM_NAME STREQUAL "Linux" OR CMAKE_SYSTEM_NAME STREQUAL "GNU" )
   add_custom_command( TARGET ${EXE_NAME} POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy
                                                           $<$<CONFIG:Debug>:${CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG}/TAppDecoder>
                                                           $<$<CONFIG:Release>:${CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE}/TAppDecoder>
--- hm.orig/source/App/TAppDecoderAnalyser/CMakeLists.txt
+++ hm/source/App/TAppDecoderAnalyser/CMakeLists.txt
@@ -46,7 +46,7 @@ endif()
 
 target_link_libraries( ${EXE_NAME} TLibCommonAnalyser TLibDecoderAnalyser Utilities Threads::Threads ${ADDITIONAL_LIBS} )
 
-if( CMAKE_SYSTEM_NAME STREQUAL "Linux" )
+if( CMAKE_SYSTEM_NAME STREQUAL "Linux" OR CMAKE_SYSTEM_NAME STREQUAL "GNU" )
   add_custom_command( TARGET ${EXE_NAME} POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy
                                                           $<$<CONFIG:Debug>:${CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG}/TAppDecoderAnalyser>
                                                           $<$<CONFIG:Release>:${CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE}/TAppDecoderAnalyser>
--- hm.orig/source/App/TAppEncoder/CMakeLists.txt
+++ hm/source/App/TAppEncoder/CMakeLists.txt
@@ -50,7 +50,7 @@ if( EXTENSION_360_VIDEO )
   target_link_libraries( ${EXE_NAME} Lib360 AppEncHelper360 )
 endif()
 
-if( CMAKE_SYSTEM_NAME STREQUAL "Linux" )
+if( CMAKE_SYSTEM_NAME STREQUAL "Linux" OR CMAKE_SYSTEM_NAME STREQUAL "GNU" )
   add_custom_command( TARGET ${EXE_NAME} POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy
                                                           $<$<CONFIG:Debug>:${CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG}/TAppEncoder>
                                                           $<$<CONFIG:Release>:${CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE}/TAppEncoder>
@@ -67,4 +67,3 @@ source_group( "Natvis Files" FILES ${NAT
 
 # set the folder where to place the projects
 set_target_properties( ${EXE_NAME}  PROPERTIES FOLDER app LINKER_LANGUAGE CXX )
-
--- hm.orig/source/App/TAppMCTSExtractor/CMakeLists.txt
+++ hm/source/App/TAppMCTSExtractor/CMakeLists.txt
@@ -44,7 +44,7 @@ endif()
 
 target_link_libraries( ${EXE_NAME} TLibCommon TLibEncoder TLibDecoder Utilities Threads::Threads ${ADDITIONAL_LIBS} )
 
-if( CMAKE_SYSTEM_NAME STREQUAL "Linux" )
+if( CMAKE_SYSTEM_NAME STREQUAL "Linux" OR CMAKE_SYSTEM_NAME STREQUAL "GNU" )
   add_custom_command( TARGET ${EXE_NAME} POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy
                                                           $<$<CONFIG:Debug>:${CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG}/MCTSExtractor>
                                                           $<$<CONFIG:Release>:${CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE}/MCTSExtractor>
