-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
20 lines (16 loc) · 1.77 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
cmake_minimum_required(VERSION 3.13)
project(project_jj)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_FLAGS -pthread)
add_executable(project_jj main.cpp project_jj_lib/DataTypes.cpp project_jj_lib/DataTypes.h project_jj_lib/Utils.cpp project_jj_lib/Utils.h project_jj_lib/Stack.cpp project_jj_lib/Stack.h project_jj_lib_part2/Utils_part2.cpp project_jj_lib_part2/Utils_part2.h project_jj_lib_part2/Datatypes_part2.cpp project_jj_lib_part2/Datatypes_part2.h project_jj_lib_part2/MACROS.h project_jj_lib_part2/Vector.cpp project_jj_lib_part2/Vector.h project_jj_lib_part2/List.cpp project_jj_lib_part2/List.h project_jj_lib_part3/Datatypes_part3.cpp project_jj_lib_part3/Datatypes_part3.h project_jj_lib_part3/JobScheduler.cpp project_jj_lib_part3/JobScheduler.h project_jj_lib_part3/Barrier.cpp project_jj_lib_part3/Barrier.h)
# >>>>>>>>>>>>>>>>
# in order to BUILD executable for testing in project
# ADD following command in CMakeLists.txt of project,
# given new structure of project (Catch_tests and project_jj_lib directories added ...)
add_executable(Catch_tests_run Catch_tests/AbsoluteTests.cpp project_jj_lib_part2/Vector.cpp project_jj_lib_part2/List.cpp project_jj_lib_part2/Datatypes_part2.cpp project_jj_lib/DataTypes.cpp project_jj_lib/Utils.cpp project_jj_lib/Stack.cpp project_jj_lib_part2/Utils_part2.cpp project_jj_lib_part3/Datatypes_part3.cpp project_jj_lib_part3/Datatypes_part3.h project_jj_lib_part3/JobScheduler.cpp project_jj_lib_part3/JobScheduler.h project_jj_lib_part3/Barrier.cpp project_jj_lib_part3/Barrier.h)
# in order to RUN tests
# CREATE CONFIGURATION following path: Run > Edit Configurations > Templates > Catch
# ADD tags of each TEST_CASE ([tag1][tag2]...) in Tags
# and select Catch_tests_run in Target
# [build, run/debug accordingly]
# >>>>>>>>>>>>>>>>