-
Notifications
You must be signed in to change notification settings - Fork 3
/
CMakeLists.txt
77 lines (69 loc) · 3.22 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
cmake_minimum_required(VERSION 3.10)
project(c-mandelbrot-arbitrary-precision C)
set(CMAKE_C_STANDARD 99)
set(CMAKE_INSTALL_RPATH "/usr/local/lib")
file(GLOB EXTERNAL_CODE
tests/lib/unity/*.h
tests/lib/unity/*.c
)
file(GLOB PRODUCTION_CODE
${PROJECT_SOURCE_DIR}/src/mandelbrot/*.c
${PROJECT_SOURCE_DIR}/src/mandelbrot/*.h
${PROJECT_SOURCE_DIR}/src/mandelbrot/application/*.c
${PROJECT_SOURCE_DIR}/src/mandelbrot/application/*.h
${PROJECT_SOURCE_DIR}/src/mandelbrot/domain/*.c
${PROJECT_SOURCE_DIR}/src/mandelbrot/domain/*.h
${PROJECT_SOURCE_DIR}/src/mandelbrot/domain/ascii_graph/*.c
${PROJECT_SOURCE_DIR}/src/mandelbrot/domain/ascii_graph/*.h
${PROJECT_SOURCE_DIR}/src/mandelbrot/domain/image/*.c
${PROJECT_SOURCE_DIR}/src/mandelbrot/domain/image/*.h
${PROJECT_SOURCE_DIR}/src/mandelbrot/domain/optimisation/*.c
${PROJECT_SOURCE_DIR}/src/mandelbrot/domain/optimisation/*.h
${PROJECT_SOURCE_DIR}/src/mandelbrot/infrastructure/user_interface/console/*.c
${PROJECT_SOURCE_DIR}/src/mandelbrot/infrastructure/user_interface/console/*.h
${PROJECT_SOURCE_DIR}/src/mandelbrot/infrastructure/user_interface/console/commands/*.c
${PROJECT_SOURCE_DIR}/src/mandelbrot/infrastructure/user_interface/console/commands/*.h
${PROJECT_SOURCE_DIR}/src/mandelbrot/infrastructure/user_interface/files/*.c
${PROJECT_SOURCE_DIR}/src/mandelbrot/infrastructure/user_interface/files/*.h
${PROJECT_SOURCE_DIR}/src/mandelbrot/presentation/*.c
${PROJECT_SOURCE_DIR}/src/mandelbrot/presentation/*.h
)
file(GLOB TEST_CODE
${PROJECT_SOURCE_DIR}/tests/cycle-detection/*.c
${PROJECT_SOURCE_DIR}/tests/lib/*.c
${PROJECT_SOURCE_DIR}/tests/lib/*.h
${PROJECT_SOURCE_DIR}/tests/mandelbrot/*.c
${PROJECT_SOURCE_DIR}/tests/mandelbrot/*.h
${PROJECT_SOURCE_DIR}/tests/mandelbrot/application/*.c
${PROJECT_SOURCE_DIR}/tests/mandelbrot/application/*.h
${PROJECT_SOURCE_DIR}/tests/mandelbrot/domain/*.c
${PROJECT_SOURCE_DIR}/tests/mandelbrot/domain/*.h
${PROJECT_SOURCE_DIR}/tests/mandelbrot/infrastructure/user_interface/console/*.c
${PROJECT_SOURCE_DIR}/tests/mandelbrot/infrastructure/user_interface/console/*.h
${PROJECT_SOURCE_DIR}/tests/mandelbrot/infrastructure/user_interface/console/commands/*.c
${PROJECT_SOURCE_DIR}/tests/mandelbrot/infrastructure/user_interface/console/commands/*.h
${PROJECT_SOURCE_DIR}/tests/mandelbrot/infrastructure/user_interface/files/*.c
${PROJECT_SOURCE_DIR}/tests/mandelbrot/infrastructure/user_interface/files/*.h
)
add_executable(
mandelbrot-test
tests/main_test.c
${EXTERNAL_CODE}
${PRODUCTION_CODE}
${TEST_CODE}
)
add_executable(
mandelbrot
src/main.c
${EXTERNAL_CODE}
${PRODUCTION_CODE}
)
add_executable(
mandelbrot-orbit
src/mandelbrot_orbit.c
${EXTERNAL_CODE}
${PRODUCTION_CODE}
)
target_link_libraries(mandelbrot-test gmp mpfr flint arb)
target_link_libraries(mandelbrot gmp mpfr flint arb)
target_link_libraries(mandelbrot-orbit gmp mpfr flint arb)