-
Notifications
You must be signed in to change notification settings - Fork 76
/
Copy pathCMakeLists.txt
22 lines (19 loc) · 980 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
# Set up the project.
cmake_minimum_required( VERSION 3.12 )
project( smartPointers LANGUAGES CXX )
# Set up the compilation environment.
include( "${CMAKE_CURRENT_SOURCE_DIR}/../common.cmake" )
set( CMAKE_CXX_STANDARD 20 )
# Create the user's executable.
add_executable( problem1 "problem1.cpp" )
add_executable( problem2 "problem2.cpp" )
add_executable( problem3 "problem3.cpp" )
add_executable( problem4 "problem4.cpp" )
add_executable( problem5 "problem5.cpp" )
# Create the "solution executables".
add_executable( problem1.sol EXCLUDE_FROM_ALL "solution/problem1.sol.cpp" )
add_executable( problem2.sol EXCLUDE_FROM_ALL "solution/problem2.sol.cpp" )
add_executable( problem3.sol EXCLUDE_FROM_ALL "solution/problem3.sol.cpp" )
add_executable( problem4.sol EXCLUDE_FROM_ALL "solution/problem4.sol.cpp" )
add_executable( problem5.sol EXCLUDE_FROM_ALL "solution/problem5.sol.cpp" )
add_dependencies( solution problem1.sol problem2.sol problem3.sol problem4.sol problem5.sol )