-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
25 lines (20 loc) · 951 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
cmake_minimum_required(VERSION 3.10)
project(CodingExerciseDec2024)
# For using Google Test Framework
include(FetchContent)
FetchContent_Declare(
googletest
# Specify the commit you depend on and update it regularly.
URL https://github.com/google/googletest/archive/5376968f6948923e2411081fd9372e71a59d8e77.zip
)
# For Windows: Prevent overriding the parent project's compiler/linker settings
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
FetchContent_MakeAvailable(googletest)
enable_testing()
add_executable(ThreadingUnitTests tests/ThreadingUnitTests.cpp)
target_link_libraries(ThreadingUnitTests gtest_main)
# add_test(NAME ThreadingUnitTests COMMAND ThreadingUnitTests)
# For using spdlog - Logging Framework
find_package(spdlog CONFIG REQUIRED)
add_executable(ExceptionHandlingWithLoggingFramework src/ExceptionHandlingWithLoggingFramework.cpp)
target_link_libraries(ExceptionHandlingWithLoggingFramework PRIVATE spdlog::spdlog)