From fa52c9d098a04e3d2585edef6b2cb61097885181 Mon Sep 17 00:00:00 2001 From: Christopher Bruns Date: Thu, 22 Sep 2016 18:19:11 -0400 Subject: [PATCH] Add first level folder contents to SOURCES for PK3 targets, so I can open the files from Visual Studio. (cherry picked from commit c378cd4ff0b901051671932a39e3cb56e82541f4) # Conflicts: # CMakeLists.txt --- CMakeLists.txt | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9d7da1644d..50af339166 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -49,11 +49,13 @@ function( add_pk3 PK3_NAME PK3_DIR ) DEPENDS zipdir ) endif() - # Touch the zipdir executable here so that the pk3s are forced to - # rebuild each time since their dependecy has "changed." - add_custom_target( ${PK3_TARGET} ALL - COMMAND ${CMAKE_COMMAND} -E touch $ - DEPENDS ${ZDOOM_OUTPUT_DIR}/${PK3_NAME} ) + file(GLOB PK3_SRCS ${PK3_DIR}/*) + # Touch the zipdir executable here so that the pk3s are forced to + # rebuild each time since their dependecy has "changed." + add_custom_target( ${PK3_TARGET} ALL + COMMAND ${CMAKE_COMMAND} -E touch $ + DEPENDS ${ZDOOM_OUTPUT_DIR}/${PK3_NAME} + SOURCES "${PK3_SRCS}") endfunction() # Macro for building libraries without debugging information