Reformat CMake files

This commit is contained in:
Benoit Blanchon
2023-02-09 10:00:38 +01:00
parent e0bdc4bff1
commit 62dea9d364
24 changed files with 104 additions and 107 deletions

View File

@ -25,5 +25,5 @@ add_test(Cpp17 Cpp17Tests)
set_tests_properties(Cpp17
PROPERTIES
LABELS "Catch"
LABELS "Catch"
)

View File

@ -25,5 +25,5 @@ add_test(Cpp20 Cpp20Tests)
set_tests_properties(Cpp20
PROPERTIES
LABELS "Catch"
LABELS "Catch"
)

View File

@ -5,25 +5,21 @@
macro(build_should_fail target)
set_target_properties(${target}
PROPERTIES
EXCLUDE_FROM_ALL TRUE
EXCLUDE_FROM_DEFAULT_BUILD TRUE
EXCLUDE_FROM_ALL TRUE
EXCLUDE_FROM_DEFAULT_BUILD TRUE
)
add_test(
NAME
${target}
COMMAND
${CMAKE_COMMAND} --build . --target ${target} --config $<CONFIGURATION>
WORKING_DIRECTORY
${CMAKE_BINARY_DIR}
NAME ${target}
COMMAND ${CMAKE_COMMAND} --build . --target ${target} --config $<CONFIGURATION>
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
)
set_tests_properties(${target}
set_tests_properties(${target}
PROPERTIES
WILL_FAIL TRUE
LABELS "WillFail;Catch"
WILL_FAIL TRUE
LABELS "WillFail;Catch"
)
endmacro()
add_executable(Issue978 Issue978.cpp)
build_should_fail(Issue978)

View File

@ -12,7 +12,7 @@ add_executable(IntegrationTests
if(CMAKE_CXX_COMPILER_ID MATCHES "GNU")
target_compile_options(IntegrationTests
PUBLIC
-fsingle-precision-constant # issue 544
-fsingle-precision-constant # issue 544
)
endif()
@ -20,5 +20,5 @@ add_test(IntegrationTests IntegrationTests)
set_tests_properties(IntegrationTests
PROPERTIES
LABELS "Catch"
LABELS "Catch"
)

View File

@ -24,5 +24,5 @@ add_test(JsonArray JsonArrayTests)
set_tests_properties(JsonArray
PROPERTIES
LABELS "Catch"
LABELS "Catch"
)

View File

@ -24,5 +24,5 @@ add_test(JsonDeserializer JsonDeserializerTests)
set_tests_properties(JsonDeserializer
PROPERTIES
LABELS "Catch"
LABELS "Catch"
)

View File

@ -28,5 +28,5 @@ add_test(JsonDocument JsonDocumentTests)
set_tests_properties(JsonDocument
PROPERTIES
LABELS "Catch"
LABELS "Catch"
)

View File

@ -25,5 +25,5 @@ add_test(JsonObject JsonObjectTests)
set_tests_properties(JsonObject
PROPERTIES
LABELS "Catch"
LABELS "Catch"
)

View File

@ -18,5 +18,5 @@ add_test(JsonSerializer JsonSerializerTests)
set_tests_properties(JsonSerializer
PROPERTIES
LABELS "Catch"
LABELS "Catch"
)

View File

@ -33,5 +33,5 @@ add_test(JsonVariant JsonVariantTests)
set_tests_properties(JsonVariant
PROPERTIES
LABELS "Catch"
LABELS "Catch"
)

View File

@ -2,7 +2,7 @@
# Copyright © 2014-2022, Benoit BLANCHON
# MIT License
add_executable(MemoryPoolTests
add_executable(MemoryPoolTests
allocVariant.cpp
clear.cpp
saveString.cpp
@ -14,5 +14,5 @@ add_test(MemoryPool MemoryPoolTests)
set_tests_properties(MemoryPool
PROPERTIES
LABELS "Catch"
LABELS "Catch"
)

View File

@ -25,5 +25,5 @@ add_test(Misc MiscTests)
set_tests_properties(Misc
PROPERTIES
LABELS "Catch"
LABELS "Catch"
)

View File

@ -29,5 +29,5 @@ add_test(MixedConfiguration MixedConfigurationTests)
set_tests_properties(MixedConfiguration
PROPERTIES
LABELS "Catch"
LABELS "Catch"
)

View File

@ -20,5 +20,5 @@ add_test(MsgPackDeserializer MsgPackDeserializerTests)
set_tests_properties(MsgPackDeserializer
PROPERTIES
LABELS "Catch"
LABELS "Catch"
)

View File

@ -15,5 +15,5 @@ add_test(MsgPackSerializer MsgPackSerializerTests)
set_tests_properties(MsgPackSerializer
PROPERTIES
LABELS "Catch"
LABELS "Catch"
)

View File

@ -10,10 +10,9 @@ add_executable(NumbersTests
parseNumber.cpp
)
add_test(Numbers NumbersTests)
set_tests_properties(Numbers
PROPERTIES
LABELS "Catch"
LABELS "Catch"
)

View File

@ -2,7 +2,7 @@
# Copyright © 2014-2022, Benoit BLANCHON
# MIT License
add_executable(TextFormatterTests
add_executable(TextFormatterTests
writeFloat.cpp
writeInteger.cpp
writeString.cpp
@ -14,5 +14,5 @@ add_test(TextFormatter TextFormatterTests)
set_tests_properties(TextFormatter
PROPERTIES
LABELS "Catch"
LABELS "Catch"
)

View File

@ -12,7 +12,7 @@ add_library(catch
target_include_directories(catch
PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
)
if(MINGW)