forked from jaildesigner-jailgames/jaildoctors_dilemma
fix: makefile i cmakes
fix: initSDLVideo en opengl de linux
This commit is contained in:
@@ -236,3 +236,24 @@ if(CLANG_FORMAT_EXE)
|
||||
else()
|
||||
message(STATUS "clang-format no encontrado - targets 'format' y 'format-check' no disponibles")
|
||||
endif()
|
||||
|
||||
# --- 6. PACK RESOURCES TARGETS ---
|
||||
set(PACK_TOOL_SOURCES
|
||||
${CMAKE_SOURCE_DIR}/tools/pack_resources/pack_resources.cpp
|
||||
${CMAKE_SOURCE_DIR}/source/core/resources/resource_pack.cpp
|
||||
)
|
||||
|
||||
add_executable(pack_tool ${PACK_TOOL_SOURCES})
|
||||
target_include_directories(pack_tool PRIVATE ${CMAKE_SOURCE_DIR}/source)
|
||||
set_target_properties(pack_tool PROPERTIES
|
||||
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/tools/pack_resources
|
||||
)
|
||||
|
||||
add_custom_target(pack
|
||||
COMMAND ${CMAKE_SOURCE_DIR}/tools/pack_resources/pack_tool
|
||||
${CMAKE_SOURCE_DIR}/data
|
||||
${CMAKE_SOURCE_DIR}/resources.pack
|
||||
DEPENDS pack_tool
|
||||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
||||
COMMENT "Generando resources.pack desde data/..."
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user