-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
150 lines (136 loc) · 4.12 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
cmake_minimum_required(VERSION 3.6.2)
#set(CMAKE_C_COMPILER /cygdrive/s/program_files/cygwin/bin/gcc.exe CACHE PATH "" FORCE)
#set(CMAKE_CXX_COMPILER /cygdrive/s/program_files/cygwin/bin/g++.exe CACHE PATH "" FORCE)
project(fractol C)
set(CMAKE_C_STANDARD 90)
#--------------LIB LINK EXAMPLE---------------------
#add_executable(<exe_name> sorce1 source2)
#find_library(FT ft libft)
#target_link_libraries(<exe_name> LINK_PUBLIC ${FT})
#---------------------------------------------------
add_executable(fractol
src/main.c
src/app.c
src/controller.c
src/camera.c
src/framebuffer.c
src/threads_test.c
src/palette.c
src/fractol.c
src/fractol_pix.c
src/it_estimator.c
src/fractol_v2.c
src/mouse_movement.c
libft/src/string/ft_atoi.c
libft/src/string/ft_bzero.c
libft/src/string/ft_isalnum.c
libft/src/string/ft_isalpha.c
libft/src/string/ft_isascii.c
libft/src/string/ft_isdigit.c
libft/src/string/ft_isprint.c
libft/src/string/ft_memalloc.c
libft/src/string/ft_memccpy.c
libft/src/string/ft_memchr.c
libft/src/string/ft_memcmp.c
libft/src/string/ft_memcpy.c
libft/src/string/ft_memdel.c
libft/src/string/ft_memmove.c
libft/src/string/ft_memset.c
libft/src/string/ft_putchar.c
libft/src/string/ft_putchar_fd.c
libft/src/string/ft_putendl.c
libft/src/string/ft_putendl_fd.c
libft/src/string/ft_putnbr.c
libft/src/string/ft_putnbr_fd.c
libft/src/string/ft_putstr.c
libft/src/string/ft_putstr_fd.c
libft/src/string/ft_strcat.c
libft/src/string/ft_strchr.c
libft/src/string/ft_strclr.c
libft/src/string/ft_strcmp.c
libft/src/string/ft_strcpy.c
libft/src/string/ft_strdel.c
libft/src/string/ft_strdup.c
libft/src/string/ft_strequ.c
libft/src/string/ft_striter.c
libft/src/string/ft_striteri.c
libft/src/string/ft_strjoin.c
libft/src/string/ft_strlcat.c
libft/src/string/ft_strlcpy.c
libft/src/string/ft_strlen.c
libft/src/string/ft_strmap.c
libft/src/string/ft_strmapi.c
libft/src/string/ft_strncat.c
libft/src/string/ft_strncmp.c
libft/src/string/ft_strncpy.c
libft/src/string/ft_strnequ.c
libft/src/string/ft_strnew.c
libft/src/string/ft_strnstr.c
libft/src/string/ft_strrchr.c
libft/src/string/ft_strsplit.c
libft/src/string/ft_strstr.c
libft/src/string/ft_strsub.c
libft/src/string/ft_strtrim.c
libft/src/string/ft_tolower.c
libft/src/string/ft_toupper.c
libft/src/string/ft_strrev.c
libft/src/string/ft_startswith.c
libft/src/format/ft_itoa.c
libft/src/format/ft_ultoa.c
libft/src/format/ft_ftoa.c
libft/src/format/ft_ftobin.c
libft/src/list/ft_lstadd.c
libft/src/list/ft_lstaddend.c
libft/src/list/ft_lstdel.c
libft/src/list/ft_lstdelone.c
libft/src/list/ft_lstiter.c
libft/src/list/ft_lstmap.c
libft/src/list/ft_lstnew.c
libft/src/math/ft_sqrt.c
libft/src/math/ft_pow.c
libft/src/math/ft_abs.c
libft/src/math/ft_trig.c
libft/src/math/ft_log.c
libft/src/linalg/matrix.c
libft/src/linalg/matrix_invert.c
libft/src/linalg/matrix_arithmetic.c
libft/src/linalg/matrix_transform.c
libft/src/linalg/vector.c
libft/src/linalg/vector_arithmetic.c
libft/src/linalg/vector_transform.c
libft/src/hash_table/hash_table.c
libft/src/hash_table/hash_table2.c
libft/src/hash_table/hash.c
libft/src/ft_alloc.c
libft/src/ft_swap.c
libft/src/get_next_line.c
libft/src/t_buff.c
libft/src/endian.c
libft/src/swatch.c
libft/src/ft_error_exit.c
libft/src/threading/thread.c
libft/src/threading/thread_pool.c
libft/src/array/array.c
libft/src/array/arrayi.c
libft/src/printf/ft_printf.c
libft/src/printf/spec_parse.c
libft/src/printf/conversion.c
libft/src/printf/convert.c
libft/src/printf/apply_fw.c
)
include_directories(.)
include_directories(headers)
include_directories(libft)
include_directories(mlx_glfw)
include_directories(mlx_glfw/includes)
target_link_libraries(fractol
LINK_PRIVATE ${CMAKE_SOURCE_DIR}/glfw3.lib
LINK_PRIVATE ${CMAKE_SOURCE_DIR}/mlx_glfw.lib
)
#include_directories(minilibx_macos)
#target_link_libraries(fractol
# LINK_PRIVATE ${CMAKE_SOURCE_DIR}/libft/libft.a
# LINK_PRIVATE ${CMAKE_SOURCE_DIR}/minilibx_macos/libmlx.a
# "-framework OpenGL"
# "-framework AppKit"
# )