fixing cmake bs
This commit is contained in:
@@ -30,7 +30,7 @@ target_include_directories(PuzGameEngine PUBLIC dependency/tracy/public/)
|
||||
|
||||
# Game
|
||||
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"
|
||||
OUTPUT "${CMAKE_SOURCE_DIR}/gen/Generated.h" "${CMAKE_SOURCE_DIR}/gen/Generated.cpp"
|
||||
COMMENT "Genrating from minidef"
|
||||
|
||||
@@ -5,9 +5,11 @@ file(GLOB headers "${CMAKE_CURRENT_SOURCE_DIR}/src/*.h")
|
||||
file(GLOB sources "${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp")
|
||||
|
||||
add_executable(minidef ${headers} ${sources})
|
||||
set_property(TARGET minidef PROPERTY CXX_STANDARD 17)
|
||||
target_include_directories(minidef PRIVATE
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/../bgfx.cmake/bx/include/"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/../bgfx.cmake/bx/include/compat/msvc/"
|
||||
)
|
||||
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 PUBLIC "_AMD64_")
|
||||
|
||||
BIN
tools/minidef.exe
LFS
Normal file
BIN
tools/minidef.exe
LFS
Normal file
Binary file not shown.
Reference in New Issue
Block a user