10 lines
285 B
CMake
10 lines
285 B
CMake
find_package(Catch2 REQUIRED)
|
|
include_directories("${CMAKE_CURRENT_SOURCE_DIR}")
|
|
add_executable(testing
|
|
./test-main.cpp
|
|
./test-algorithm.cpp
|
|
../src/algorithm.cpp
|
|
)
|
|
set_target_properties(testing PROPERTIES LINKER_LANGUAGE CXX)
|
|
target_link_libraries(testing Catch2::Catch2)
|