CMakeLists: improve formatting.

This commit is contained in:
Guillaume Jacquemin 2022-11-21 09:18:42 +01:00
parent 5c6a83c03b
commit 42cec59c71
1 changed files with 85 additions and 79 deletions

View File

@ -101,12 +101,14 @@ add_library(UESaveFile STATIC EXCLUDE_FROM_ALL
UESaveFile/BinaryWriter.h
UESaveFile/BinaryWriter.cpp
UESaveFile/PropertySerialiser.h
UESaveFile/PropertySerialiser.cpp)
UESaveFile/PropertySerialiser.cpp
)
target_link_libraries(UESaveFile PRIVATE
Corrade::Containers
Corrade::Utility
Magnum::Magnum)
Magnum::Magnum
)
add_executable(MassBuilderSaveTool WIN32
main.cpp
@ -164,14 +166,17 @@ add_executable(MassBuilderSaveTool WIN32
FontAwesome/IconsFontAwesome5.h
FontAwesome/IconsFontAwesome5Brands.h
resource.rc
${Assets})
${Assets}
)
if(CMAKE_BUILD_TYPE STREQUAL Debug)
add_compile_definitions(SAVETOOL_DEBUG_BUILD)
endif()
add_compile_definitions(SAVETOOL_VERSION="${SAVETOOL_PROJECT_VERSION}"
SAVETOOL_CODENAME="Dickish Cyclops"
SUPPORTED_GAME_VERSION="0.8.6")
add_compile_definitions(
SAVETOOL_VERSION="${SAVETOOL_PROJECT_VERSION}"
SAVETOOL_CODENAME="Enigmatic Ellenier"
SUPPORTED_GAME_VERSION="0.9.x"
)
if(CMAKE_BUILD_TYPE STREQUAL Release)
set_target_properties(MassBuilderSaveTool PROPERTIES OUTPUT_NAME MassBuilderSaveTool-${SAVETOOL_PROJECT_VERSION})
@ -196,4 +201,5 @@ target_link_libraries(MassBuilderSaveTool PRIVATE
zip
libcurl
imm32
wtsapi32)
wtsapi32
)