Skip to content

Commit

Permalink
Remove references from test projects
Browse files Browse the repository at this point in the history
  • Loading branch information
bernedom committed Feb 11, 2022
1 parent 4d5b4a8 commit cde177b
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 41 deletions.
6 changes: 3 additions & 3 deletions test/conan-cmake-installation-test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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")
Expand All @@ -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)
6 changes: 3 additions & 3 deletions test/conan-installation-test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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)
6 changes: 3 additions & 3 deletions test/installation-test-subdirectory/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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)
6 changes: 3 additions & 3 deletions test/installation-tests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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)
58 changes: 29 additions & 29 deletions test/src/compilation_tests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit cde177b

Please sign in to comment.