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
This commit is contained in:
Christopher Bruns 2016-09-22 18:19:11 -04:00 committed by Christoph Oelckers
parent 7e4d0ecdbf
commit fa52c9d098

View file

@ -49,11 +49,13 @@ function( add_pk3 PK3_NAME PK3_DIR )
DEPENDS zipdir ) DEPENDS zipdir )
endif() endif()
# Touch the zipdir executable here so that the pk3s are forced to file(GLOB PK3_SRCS ${PK3_DIR}/*)
# rebuild each time since their dependecy has "changed." # Touch the zipdir executable here so that the pk3s are forced to
add_custom_target( ${PK3_TARGET} ALL # rebuild each time since their dependecy has "changed."
COMMAND ${CMAKE_COMMAND} -E touch $<TARGET_FILE:zipdir> add_custom_target( ${PK3_TARGET} ALL
DEPENDS ${ZDOOM_OUTPUT_DIR}/${PK3_NAME} ) COMMAND ${CMAKE_COMMAND} -E touch $<TARGET_FILE:zipdir>
DEPENDS ${ZDOOM_OUTPUT_DIR}/${PK3_NAME}
SOURCES "${PK3_SRCS}")
endfunction() endfunction()
# Macro for building libraries without debugging information # Macro for building libraries without debugging information