-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
36 lines (31 loc) · 1012 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
26
27
28
29
30
31
32
33
34
35
cmake_minimum_required(VERSION 3.6)
project(jimp_exercises)
set(CMAKE_CXX_STANDARD 14)
if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra")
endif()
macro(add_subdirectory_if_exists DIR)
# message("add_subdirectory_if_exists")
string(TOUPPER "${DIR}" DIR_UPPER)
# message("add_subdirectory_if_exists ${DIR_UPPER}")
if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${DIR}/CMakeLists.txt")
message("add_subdirectory_if_exists ${DIR_UPPER} EXISTS!")
set("HAVE_DIR_${DIR_UPPER}" 1)
add_subdirectory("${DIR}")
endif ()
endmacro(add_subdirectory_if_exists)
add_subdirectory(lab1)
add_subdirectory(lab2)
add_subdirectory(lab3)
add_subdirectory(lab4)
add_subdirectory(lab5)
add_subdirectory(lab6)
add_subdirectory(lab7)
add_subdirectory(lab8)
add_subdirectory(lab9)
add_subdirectory(lab10)
add_subdirectory(lab11)
add_subdirectory(lab12)
add_subdirectory(lab13)
add_subdirectory(tests)
add_subdirectory(example)