-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
36 lines (28 loc) · 791 Bytes
/
CMakeLists.txt
File metadata and controls
36 lines (28 loc) · 791 Bytes
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
cmake_minimum_required(VERSION 3.11)
project(cpp_learning VERSION 1.1.0 LANGUAGES CXX)
list(APPEND CMAKE_MODULE_PATH
"${CMAKE_CURRENT_SOURCE_DIR}/cmake"
)
include(CMakeInclude)
include(LogCMakeVariables)
# log options and variables
print_options()
print_project_variables()
# Only for extreme cases - prints out a lot of stuff
# print_all_variables()
# clear the output directory
# remove the executables and the generated PDBs
file(GLOB_RECURSE EXECUTABLES_TO_CLEAN
bin/**/*.exe
bin/**/*.pdb)
if(EXECUTABLES_TO_CLEAN)
file (REMOVE
${EXECUTABLES_TO_CLEAN}
)
endif()
# add subdirectories to the build
add_subdirectory(std)
add_subdirectory(design_patterns)
add_subdirectory(algorithms)
add_subdirectory(codility_lessons)
add_subdirectory(data_structures)