-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
39 lines (27 loc) · 1.3 KB
/
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
cmake_minimum_required(VERSION 3.7)
project(Scheduler)
set(CMAKE_CXX_STANDARD 11)
include_directories(externals/croncpp/include externals/CTPL externals/googletest)
# threads
set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(Threads REQUIRED)
# Add the subdirectory for Google Test
add_subdirectory(externals/googletest)
add_executable(example example.cpp)
target_link_libraries(example Threads::Threads)
enable_testing()
add_executable(Scheduler_test Scheduler_test.cpp)
target_link_libraries(Scheduler_test Threads::Threads gtest gtest_main)
add_test(NAME Scheduler_test COMMAND Scheduler_test)
# Note to contributors
message("
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Important Note for Contributors: This repository uses automated releases.
Please follow the Conventional Commits specifications to write the correct
commit messages, ensuring the appropriate release process is triggered. To
enforce this on *nix environments, you can use our commit-msg hook:
git config core.hooksPath \"<path_to_this_repo>/.githooks\"
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
")