From ca6745d06563c8f65d86bbc98dffa5e2dec76da2 Mon Sep 17 00:00:00 2001 From: Pcornat Date: Wed, 30 Oct 2024 21:43:09 +0100 Subject: [PATCH] characteristics_tests.cpp are working --- Unit testing/CMakeLists.txt | 4 ++-- Unit testing/characteristics_tests.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Unit testing/CMakeLists.txt b/Unit testing/CMakeLists.txt index 554d3fd..d3fa7d2 100644 --- a/Unit testing/CMakeLists.txt +++ b/Unit testing/CMakeLists.txt @@ -9,8 +9,8 @@ add_executable(UnitTest adummy.cpp billy_objects_tests.cpp ) -set_target_properties(Catch2 UnitTest svector PROPERTIES CXX_STANDARD 17 +set_target_properties(Catch2 UnitTest PROPERTIES CXX_STANDARD_REQUIRED ON CXX_EXTENSIONS OFF INTERPROCEDURAL_OPTIMIZATION_RELEASE ON @@ -20,7 +20,7 @@ target_include_directories(UnitTest PRIVATE ${CMAKE_SOURCE_DIR}/include) target_compile_definitions(UnitTest PRIVATE ${DEF_COMP}) target_compile_options(UnitTest PRIVATE ${COMPILE_FLAGS} -fdiagnostics-all-candidates) target_link_options(UnitTest PRIVATE ${LINKER_OPTIONS}) -target_link_libraries(UnitTest ${LINKER_FLAGS} spdlog::spdlog_header_only Catch2::Catch2WithMain nlohmann_json::nlohmann_json svector::svector BillySheet) +target_link_libraries(UnitTest ${LINKER_FLAGS} Catch2::Catch2WithMain nlohmann_json::nlohmann_json BillySheet) enable_testing() catch_discover_tests(UnitTest WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} REPORTER junit OUTPUT_DIR ${CMAKE_SOURCE_DIR} OUTPUT_PREFIX cppspec- OUTPUT_SUFFIX .xml) diff --git a/Unit testing/characteristics_tests.cpp b/Unit testing/characteristics_tests.cpp index c96d713..34b179b 100644 --- a/Unit testing/characteristics_tests.cpp +++ b/Unit testing/characteristics_tests.cpp @@ -1,7 +1,7 @@ #include -#include "characteristic/characteristic.hpp" -#include "character_sheet.hpp" #include +#include "characteristic.hpp" +#include "character_sheet.hpp" using namespace character::characteristic;