From 1148037c82b6ac2db366da19cfab801dfb4e88f8 Mon Sep 17 00:00:00 2001 From: Leonetienne Date: Sat, 12 Feb 2022 17:45:44 +0100 Subject: [PATCH] Optimized cmake structure --- CMakeLists.txt | 3 +++ Test/CMakeLists.txt | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..4664c81 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,3 @@ +add_subdirectory(Src/) +add_subdirectory(Exec/) +add_subdirectory(Test/) diff --git a/Test/CMakeLists.txt b/Test/CMakeLists.txt index da8c416..31793bb 100644 --- a/Test/CMakeLists.txt +++ b/Test/CMakeLists.txt @@ -1,12 +1,12 @@ cmake_minimum_required(VERSION 3.16) -project(Tests) +project(Test) set(CMAKE_CXX_STANDARD 17) include_directories(../Src) link_directories(../Src/cmake-build-debug) -add_executable(Tests +add_executable(Test Catch2.h main.cpp Lower.cpp @@ -15,4 +15,4 @@ add_executable(Tests Replace_String.cpp ) -target_link_libraries(Tests StringTools) +target_link_libraries(Test StringTools)