mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-22 12:11:25 +00:00
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:
parent
7e4d0ecdbf
commit
fa52c9d098
1 changed files with 7 additions and 5 deletions
|
@ -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 $<TARGET_FILE:zipdir>
|
||||
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 $<TARGET_FILE:zipdir>
|
||||
DEPENDS ${ZDOOM_OUTPUT_DIR}/${PK3_NAME}
|
||||
SOURCES "${PK3_SRCS}")
|
||||
endfunction()
|
||||
|
||||
# Macro for building libraries without debugging information
|
||||
|
|
Loading…
Reference in a new issue