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()
file(GLOB PK3_SRCS ${PK3_DIR}/*)
# Touch the zipdir executable here so that the pk3s are forced to # Touch the zipdir executable here so that the pk3s are forced to
# rebuild each time since their dependecy has "changed." # rebuild each time since their dependecy has "changed."
add_custom_target( ${PK3_TARGET} ALL add_custom_target( ${PK3_TARGET} ALL
COMMAND ${CMAKE_COMMAND} -E touch $<TARGET_FILE:zipdir> COMMAND ${CMAKE_COMMAND} -E touch $<TARGET_FILE:zipdir>
DEPENDS ${ZDOOM_OUTPUT_DIR}/${PK3_NAME} ) 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