/
CMakeLists.txt
104 lines (85 loc) · 1.66 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# mandel
cmake_minimum_required(VERSION 3.13)
project(Mandel VERSION 0.2.0
DESCRIPTION "Mandelbrot thing"
LANGUAGES CXX)
#
# Make sure we use -std=c++17 or higher
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
add_compile_options("-g;-O2;-Wall;-pedantic")
add_subdirectory(extern)
add_subdirectory(src)
find_package(PkgConfig)
pkg_check_modules(GTKMM gtkmm-3.0)
link_directories(
${GTKMM_LIBRARY_DIRS} )
include_directories(
${GTKMM_INCLUDE_DIRS} )
#
##
## fractalator application
##
add_executable(fractalator)
target_sources(fractalator
PRIVATE
src/fractalator/fractalator_main.cpp
)
target_link_libraries(fractalator
PRIVATE
cxxopts
lib_objlib
lib-include
fractalator-lib
)
##
## colorator application
##
add_executable(colorator)
target_sources(colorator
PRIVATE
src/colorator/colorator_main.cpp
)
target_link_libraries(colorator
PRIVATE
cxxopts
lib_objlib
lib-include
colorator-lib
)
##
## mandel application
##
add_executable(mandel)
target_sources(mandel
PRIVATE
"src/mandel/mandel_main.cpp"
)
target_link_libraries(mandel
PRIVATE
cxxopts
lib_objlib
lib-include
fractalator-lib
colorator-lib
)
##
## gmandel application
##
#add_executable(gmandel)
#
#target_sources(gmandel
# PRIVATE
# "src/main-gtk.cpp"
# "src/MandelWin.cpp"
# "src/MandelApp.cpp"
# )
##
#target_link_libraries(gmandel
# PRIVATE
## lib-include
# cxxopts
# ${GTKMM_LIBRARIES}
# lib_objlib
# )