diff --git a/test/conan-cmake-installation-test/CMakeLists.txt b/test/conan-cmake-installation-test/CMakeLists.txt index e200a1e9..9687eafb 100644 --- a/test/conan-cmake-installation-test/CMakeLists.txt +++ b/test/conan-cmake-installation-test/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required(VERSION 3.12) -project("SI-Example-conan") +project(SI-example-conan) # Download automatically, you can also just copy the conan.cmake file if(NOT EXISTS "${CMAKE_CURRENT_BINARY_DIR}/conan.cmake") @@ -18,6 +18,6 @@ conan_cmake_run(CONANFILE conanfile.txt BASIC_SETUP CMAKE_TARGETS) find_package(SI CONFIG REQUIRED) -add_executable(${PROJECT_NAME} +add_executable(SI-example-conan ${CMAKE_CURRENT_SOURCE_DIR}/../src/installation-tests/main.cc) -target_link_libraries(${PROJECT_NAME} SI::SI) +target_link_libraries(SI-example-conan SI::SI) diff --git a/test/conan-installation-test/CMakeLists.txt b/test/conan-installation-test/CMakeLists.txt index 2401b6bf..9bde49cb 100644 --- a/test/conan-installation-test/CMakeLists.txt +++ b/test/conan-installation-test/CMakeLists.txt @@ -1,12 +1,12 @@ cmake_minimum_required(VERSION 3.12) -project("SI-Example-conan") +project(SI-conan-installation-test) include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake) conan_basic_setup(TARGETS) find_package(SI CONFIG REQUIRED) -add_executable(${PROJECT_NAME} +add_executable(SI-conan-installation-test ${CMAKE_CURRENT_SOURCE_DIR}/../src/installation-tests/main.cc) -target_link_libraries(${PROJECT_NAME} SI::SI) +target_link_libraries(SI-conan-installation-test SI::SI) diff --git a/test/installation-test-subdirectory/CMakeLists.txt b/test/installation-test-subdirectory/CMakeLists.txt index aef8cb93..8fd968be 100644 --- a/test/installation-test-subdirectory/CMakeLists.txt +++ b/test/installation-test-subdirectory/CMakeLists.txt @@ -1,9 +1,9 @@ cmake_minimum_required(VERSION 3.12) -project("SI-Example") +project(SI-example) add_subdirectory(../../ ${PROJECT_BINARY_DIR}/SI-build EXCLUDE_FROM_ALL) -add_executable(${PROJECT_NAME} +add_executable(SI-example ${CMAKE_CURRENT_SOURCE_DIR}/../src/installation-tests/main.cc) -target_link_libraries(${PROJECT_NAME} SI) +target_link_libraries(SI-example SI) diff --git a/test/installation-tests/CMakeLists.txt b/test/installation-tests/CMakeLists.txt index 91a95b7b..51576a8c 100644 --- a/test/installation-tests/CMakeLists.txt +++ b/test/installation-tests/CMakeLists.txt @@ -1,9 +1,9 @@ cmake_minimum_required(VERSION 3.12) -project("SI-Example") +project(SI-example) find_package(SI CONFIG REQUIRED) -add_executable(${PROJECT_NAME} +add_executable(SI-example ${CMAKE_CURRENT_SOURCE_DIR}/../src/installation-tests/main.cc) -target_link_libraries(${PROJECT_NAME} SI::SI) +target_link_libraries(SI-example SI::SI) diff --git a/test/src/compilation_tests/CMakeLists.txt b/test/src/compilation_tests/CMakeLists.txt index 8a03119e..09cc5ca0 100644 --- a/test/src/compilation_tests/CMakeLists.txt +++ b/test/src/compilation_tests/CMakeLists.txt @@ -1,35 +1,35 @@ cmake_minimum_required(VERSION 3.12) -project("SI-Compilation-Tests") +project(SI-Compilation-Tests) find_package(SI CONFIG REQUIRED) -add_executable(${PROJECT_NAME}) -target_link_libraries(${PROJECT_NAME} SI::SI) +add_executable(SI-Compilation-Tests) +target_link_libraries(SI-Compilation-Tests SI::SI) -target_sources(${PROJECT_NAME} - PRIVATE - main.cc - copy_ctor_test.cc - copy_ctor_with_same_ratio_test.cc - move_ctor_test.cc - move_ctor_with_same_ratio_test.cc - operator_equals_test.cc - operator_lessthan_test.cc - operator_greaterthan_test.cc - operator_multiply_test.cc - operator_divide_test.cc - operator_add_test.cc - operator_add_assignment_test.cc - operator_add_assignment_same_ratio_test.cc - operator_subtract_test.cc - operator_subtract_assignment_test.cc - operator_subtract_assignment_same_ratio_test.cc - operator_divide_from_integral_test.cc - operator_divide_from_floating_point_test.cc - parsing_overflow_test.cc - parsing_overflow_test_pass_compilation.cc - operator_copy_assignment_test.cc - operator_copy_assignment_same_ratio_test.cc - operator_move_assignment_test.cc - operator_move_assignment_same_ratio_test.cc) +target_sources( + SI-Compilation-Tests + PRIVATE main.cc + copy_ctor_test.cc + copy_ctor_with_same_ratio_test.cc + move_ctor_test.cc + move_ctor_with_same_ratio_test.cc + operator_equals_test.cc + operator_lessthan_test.cc + operator_greaterthan_test.cc + operator_multiply_test.cc + operator_divide_test.cc + operator_add_test.cc + operator_add_assignment_test.cc + operator_add_assignment_same_ratio_test.cc + operator_subtract_test.cc + operator_subtract_assignment_test.cc + operator_subtract_assignment_same_ratio_test.cc + operator_divide_from_integral_test.cc + operator_divide_from_floating_point_test.cc + parsing_overflow_test.cc + parsing_overflow_test_pass_compilation.cc + operator_copy_assignment_test.cc + operator_copy_assignment_same_ratio_test.cc + operator_move_assignment_test.cc + operator_move_assignment_same_ratio_test.cc)