CMakeLists: improve formatting.

This commit is contained in:
Guillaume Jacquemin 2022-11-21 09:18:42 +01:00
parent 5c6a83c03b
commit 42cec59c71

View file

@ -29,84 +29,86 @@ set_directory_properties(PROPERTIES CORRADE_USE_PEDANTIC_FLAGS ON)
corrade_add_resource(Assets assets.conf) corrade_add_resource(Assets assets.conf)
add_library(UESaveFile STATIC EXCLUDE_FROM_ALL add_library(UESaveFile STATIC EXCLUDE_FROM_ALL
UESaveFile/Serialisers/AbstractUnrealCollectionPropertySerialiser.h UESaveFile/Serialisers/AbstractUnrealCollectionPropertySerialiser.h
UESaveFile/Serialisers/AbstractUnrealPropertySerialiser.h UESaveFile/Serialisers/AbstractUnrealPropertySerialiser.h
UESaveFile/Serialisers/AbstractUnrealStructSerialiser.h UESaveFile/Serialisers/AbstractUnrealStructSerialiser.h
UESaveFile/Serialisers/ArrayPropertySerialiser.h UESaveFile/Serialisers/ArrayPropertySerialiser.h
UESaveFile/Serialisers/ArrayPropertySerialiser.cpp UESaveFile/Serialisers/ArrayPropertySerialiser.cpp
UESaveFile/Serialisers/BoolPropertySerialiser.h UESaveFile/Serialisers/BoolPropertySerialiser.h
UESaveFile/Serialisers/BoolPropertySerialiser.cpp UESaveFile/Serialisers/BoolPropertySerialiser.cpp
UESaveFile/Serialisers/BytePropertySerialiser.h UESaveFile/Serialisers/BytePropertySerialiser.h
UESaveFile/Serialisers/BytePropertySerialiser.cpp UESaveFile/Serialisers/BytePropertySerialiser.cpp
UESaveFile/Serialisers/ColourPropertySerialiser.h UESaveFile/Serialisers/ColourPropertySerialiser.h
UESaveFile/Serialisers/ColourPropertySerialiser.cpp UESaveFile/Serialisers/ColourPropertySerialiser.cpp
UESaveFile/Serialisers/DateTimePropertySerialiser.h UESaveFile/Serialisers/DateTimePropertySerialiser.h
UESaveFile/Serialisers/DateTimePropertySerialiser.cpp UESaveFile/Serialisers/DateTimePropertySerialiser.cpp
UESaveFile/Serialisers/EnumPropertySerialiser.h UESaveFile/Serialisers/EnumPropertySerialiser.h
UESaveFile/Serialisers/EnumPropertySerialiser.cpp UESaveFile/Serialisers/EnumPropertySerialiser.cpp
UESaveFile/Serialisers/FloatPropertySerialiser.h UESaveFile/Serialisers/FloatPropertySerialiser.h
UESaveFile/Serialisers/FloatPropertySerialiser.cpp UESaveFile/Serialisers/FloatPropertySerialiser.cpp
UESaveFile/Serialisers/GuidPropertySerialiser.h UESaveFile/Serialisers/GuidPropertySerialiser.h
UESaveFile/Serialisers/GuidPropertySerialiser.cpp UESaveFile/Serialisers/GuidPropertySerialiser.cpp
UESaveFile/Serialisers/IntPropertySerialiser.h UESaveFile/Serialisers/IntPropertySerialiser.h
UESaveFile/Serialisers/IntPropertySerialiser.cpp UESaveFile/Serialisers/IntPropertySerialiser.cpp
UESaveFile/Serialisers/MapPropertySerialiser.h UESaveFile/Serialisers/MapPropertySerialiser.h
UESaveFile/Serialisers/MapPropertySerialiser.cpp UESaveFile/Serialisers/MapPropertySerialiser.cpp
UESaveFile/Serialisers/ResourcePropertySerialiser.h UESaveFile/Serialisers/ResourcePropertySerialiser.h
UESaveFile/Serialisers/ResourcePropertySerialiser.cpp UESaveFile/Serialisers/ResourcePropertySerialiser.cpp
UESaveFile/Serialisers/RotatorPropertySerialiser.h UESaveFile/Serialisers/RotatorPropertySerialiser.h
UESaveFile/Serialisers/RotatorPropertySerialiser.cpp UESaveFile/Serialisers/RotatorPropertySerialiser.cpp
UESaveFile/Serialisers/StringPropertySerialiser.h UESaveFile/Serialisers/StringPropertySerialiser.h
UESaveFile/Serialisers/StringPropertySerialiser.cpp UESaveFile/Serialisers/StringPropertySerialiser.cpp
UESaveFile/Serialisers/SetPropertySerialiser.h UESaveFile/Serialisers/SetPropertySerialiser.h
UESaveFile/Serialisers/SetPropertySerialiser.cpp UESaveFile/Serialisers/SetPropertySerialiser.cpp
UESaveFile/Serialisers/StructSerialiser.h UESaveFile/Serialisers/StructSerialiser.h
UESaveFile/Serialisers/StructSerialiser.cpp UESaveFile/Serialisers/StructSerialiser.cpp
UESaveFile/Serialisers/TextPropertySerialiser.h UESaveFile/Serialisers/TextPropertySerialiser.h
UESaveFile/Serialisers/TextPropertySerialiser.cpp UESaveFile/Serialisers/TextPropertySerialiser.cpp
UESaveFile/Serialisers/UnrealPropertySerialiser.h UESaveFile/Serialisers/UnrealPropertySerialiser.h
UESaveFile/Serialisers/VectorPropertySerialiser.h UESaveFile/Serialisers/VectorPropertySerialiser.h
UESaveFile/Serialisers/VectorPropertySerialiser.cpp UESaveFile/Serialisers/VectorPropertySerialiser.cpp
UESaveFile/Serialisers/Vector2DPropertySerialiser.h UESaveFile/Serialisers/Vector2DPropertySerialiser.h
UESaveFile/Serialisers/Vector2DPropertySerialiser.cpp UESaveFile/Serialisers/Vector2DPropertySerialiser.cpp
UESaveFile/Types/ArrayProperty.h UESaveFile/Types/ArrayProperty.h
UESaveFile/Types/BoolProperty.h UESaveFile/Types/BoolProperty.h
UESaveFile/Types/ByteProperty.h UESaveFile/Types/ByteProperty.h
UESaveFile/Types/ColourStructProperty.h UESaveFile/Types/ColourStructProperty.h
UESaveFile/Types/DateTimeStructProperty.h UESaveFile/Types/DateTimeStructProperty.h
UESaveFile/Types/EnumProperty.h UESaveFile/Types/EnumProperty.h
UESaveFile/Types/FloatProperty.h UESaveFile/Types/FloatProperty.h
UESaveFile/Types/GenericStructProperty.h UESaveFile/Types/GenericStructProperty.h
UESaveFile/Types/GuidStructProperty.h UESaveFile/Types/GuidStructProperty.h
UESaveFile/Types/IntProperty.h UESaveFile/Types/IntProperty.h
UESaveFile/Types/MapProperty.h UESaveFile/Types/MapProperty.h
UESaveFile/Types/NoneProperty.h UESaveFile/Types/NoneProperty.h
UESaveFile/Types/RotatorStructProperty.h UESaveFile/Types/RotatorStructProperty.h
UESaveFile/Types/SetProperty.h UESaveFile/Types/SetProperty.h
UESaveFile/Types/StringProperty.h UESaveFile/Types/StringProperty.h
UESaveFile/Types/StructProperty.h UESaveFile/Types/StructProperty.h
UESaveFile/Types/ResourceItemValue.h UESaveFile/Types/ResourceItemValue.h
UESaveFile/Types/TextProperty.h UESaveFile/Types/TextProperty.h
UESaveFile/Types/UnrealProperty.h UESaveFile/Types/UnrealProperty.h
UESaveFile/Types/UnrealPropertyBase.h UESaveFile/Types/UnrealPropertyBase.h
UESaveFile/Types/VectorStructProperty.h UESaveFile/Types/VectorStructProperty.h
UESaveFile/Debug.h UESaveFile/Debug.h
UESaveFile/Debug.cpp UESaveFile/Debug.cpp
UESaveFile/UESaveFile.h UESaveFile/UESaveFile.h
UESaveFile/UESaveFile.cpp UESaveFile/UESaveFile.cpp
UESaveFile/BinaryReader.h UESaveFile/BinaryReader.h
UESaveFile/BinaryReader.cpp UESaveFile/BinaryReader.cpp
UESaveFile/BinaryWriter.h UESaveFile/BinaryWriter.h
UESaveFile/BinaryWriter.cpp UESaveFile/BinaryWriter.cpp
UESaveFile/PropertySerialiser.h UESaveFile/PropertySerialiser.h
UESaveFile/PropertySerialiser.cpp) UESaveFile/PropertySerialiser.cpp
)
target_link_libraries(UESaveFile PRIVATE target_link_libraries(UESaveFile PRIVATE
Corrade::Containers Corrade::Containers
Corrade::Utility Corrade::Utility
Magnum::Magnum) Magnum::Magnum
)
add_executable(MassBuilderSaveTool WIN32 add_executable(MassBuilderSaveTool WIN32
main.cpp main.cpp
@ -164,14 +166,17 @@ add_executable(MassBuilderSaveTool WIN32
FontAwesome/IconsFontAwesome5.h FontAwesome/IconsFontAwesome5.h
FontAwesome/IconsFontAwesome5Brands.h FontAwesome/IconsFontAwesome5Brands.h
resource.rc resource.rc
${Assets}) ${Assets}
)
if(CMAKE_BUILD_TYPE STREQUAL Debug) if(CMAKE_BUILD_TYPE STREQUAL Debug)
add_compile_definitions(SAVETOOL_DEBUG_BUILD) add_compile_definitions(SAVETOOL_DEBUG_BUILD)
endif() endif()
add_compile_definitions(SAVETOOL_VERSION="${SAVETOOL_PROJECT_VERSION}" add_compile_definitions(
SAVETOOL_CODENAME="Dickish Cyclops" SAVETOOL_VERSION="${SAVETOOL_PROJECT_VERSION}"
SUPPORTED_GAME_VERSION="0.8.6") SAVETOOL_CODENAME="Enigmatic Ellenier"
SUPPORTED_GAME_VERSION="0.9.x"
)
if(CMAKE_BUILD_TYPE STREQUAL Release) if(CMAKE_BUILD_TYPE STREQUAL Release)
set_target_properties(MassBuilderSaveTool PROPERTIES OUTPUT_NAME MassBuilderSaveTool-${SAVETOOL_PROJECT_VERSION}) set_target_properties(MassBuilderSaveTool PROPERTIES OUTPUT_NAME MassBuilderSaveTool-${SAVETOOL_PROJECT_VERSION})
@ -196,4 +201,5 @@ target_link_libraries(MassBuilderSaveTool PRIVATE
zip zip
libcurl libcurl
imm32 imm32
wtsapi32) wtsapi32
)