diff --git a/src/opensuperclone/CMakeLists.txt b/src/opensuperclone/CMakeLists.txt index c36691d..0816451 100644 --- a/src/opensuperclone/CMakeLists.txt +++ b/src/opensuperclone/CMakeLists.txt @@ -13,6 +13,7 @@ add_custom_command( OUTPUT opensuperclone_help.h COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/opensuperclone_help.txt opensuperclone_help.txt COMMAND xxd -i opensuperclone_help.txt opensuperclone_help.h + DEPENDS opensuperclone_help.txt ) LIST(APPEND RESOURCES opensuperclone_help.h) @@ -20,6 +21,7 @@ add_custom_command( OUTPUT opensuperclone_glade.h COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/opensuperclone.glade opensuperclone.glade COMMAND xxd -i opensuperclone.glade opensuperclone_glade.h + DEPENDS opensuperclone.glade ) LIST(APPEND RESOURCES opensuperclone_glade.h) diff --git a/src/oscviewer/CMakeLists.txt b/src/oscviewer/CMakeLists.txt index 506658e..9e48825 100644 --- a/src/oscviewer/CMakeLists.txt +++ b/src/oscviewer/CMakeLists.txt @@ -7,6 +7,7 @@ add_custom_command( OUTPUT oscviewer_glade.h COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/oscviewer.glade oscviewer.glade COMMAND xxd -i oscviewer.glade oscviewer_glade.h + DEPENDS oscviewer.glade ) LIST(APPEND RESOURCES oscviewer_glade.h)