fixing cmake bs

This commit is contained in:
Till Wübbers
2025-03-15 23:33:58 +01:00
parent a5e32c414e
commit a0af22cea6
4 changed files with 6 additions and 1 deletions

View File

@@ -30,7 +30,7 @@ target_include_directories(PuzGameEngine PUBLIC dependency/tracy/public/)
# Game # Game
add_custom_command( add_custom_command(
COMMAND "${CMAKE_BINARY_DIR}/minidef.exe" "${CMAKE_SOURCE_DIR}/game/mini.def" "${CMAKE_SOURCE_DIR}/gen/" COMMAND "${CMAKE_SOURCE_DIR}/../tools/minidef.exe" "${CMAKE_SOURCE_DIR}/game/mini.def" "${CMAKE_SOURCE_DIR}/gen/"
DEPENDS "${CMAKE_SOURCE_DIR}/game/mini.def" DEPENDS "${CMAKE_SOURCE_DIR}/game/mini.def"
OUTPUT "${CMAKE_SOURCE_DIR}/gen/Generated.h" "${CMAKE_SOURCE_DIR}/gen/Generated.cpp" OUTPUT "${CMAKE_SOURCE_DIR}/gen/Generated.h" "${CMAKE_SOURCE_DIR}/gen/Generated.cpp"
COMMENT "Genrating from minidef" COMMENT "Genrating from minidef"

View File

@@ -5,9 +5,11 @@ file(GLOB headers "${CMAKE_CURRENT_SOURCE_DIR}/src/*.h")
file(GLOB sources "${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp") file(GLOB sources "${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp")
add_executable(minidef ${headers} ${sources}) add_executable(minidef ${headers} ${sources})
set_property(TARGET minidef PROPERTY CXX_STANDARD 17)
target_include_directories(minidef PRIVATE target_include_directories(minidef PRIVATE
"${CMAKE_CURRENT_SOURCE_DIR}/../bgfx.cmake/bx/include/" "${CMAKE_CURRENT_SOURCE_DIR}/../bgfx.cmake/bx/include/"
"${CMAKE_CURRENT_SOURCE_DIR}/../bgfx.cmake/bx/include/compat/msvc/" "${CMAKE_CURRENT_SOURCE_DIR}/../bgfx.cmake/bx/include/compat/msvc/"
) )
target_link_libraries(minidef bx) target_link_libraries(minidef bx)
target_compile_definitions(minidef PRIVATE "$<$<CONFIG:DEBUG>:BX_CONFIG_DEBUG=1>$<$<CONFIG:RELEASE>:BX_CONFIG_DEBUG=0>") target_compile_definitions(minidef PRIVATE "$<$<CONFIG:DEBUG>:BX_CONFIG_DEBUG=1>$<$<CONFIG:RELEASE>:BX_CONFIG_DEBUG=0>")
target_compile_definitions(minidef PUBLIC "_AMD64_")

BIN
tools/minidef.exe LFS Normal file

Binary file not shown.