-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
55 lines (46 loc) · 1.32 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
cmake_minimum_required(VERSION 3.10)
project(ft_nm C CXX)
set(CMAKE_C_STANDARD 99)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Werror -Wextra -pedantic")
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -Wall -Werror -Wextra -pedantic")
add_definitions(-DFT_NM_DEV=1 -DFT_NM_BUILD_64=1)
set(SOURCE_FT_NM
cmd/main.c
cmd/var_arch.c
cmd/utils.c
cmd/parsing.c
cmd/ft_nm.h
pkg/ft_memory/del_array.c
pkg/ft_memory/ft_bzero.c
pkg/ft_memory/safe_free.c
pkg/ft_memory/zeroed_malloc.c
pkg/ft_memory/ft_memory.h
pkg/ft_string/ft_string_copy.c
pkg/ft_string/ft_string_concat.c
pkg/ft_string/get_after_n_sep.c
pkg/ft_string/ft_strcmp.c
pkg/ft_string/ft_to_lower.c
pkg/ft_string/ft_strlen.c
pkg/ft_string/ft_is_alnum.c
pkg/ft_string/ft_split.c
pkg/ft_string/ft_is_alpha.c
pkg/ft_string/string.c
pkg/ft_string/ft_string.h
pkg/ft_print/ft_putchar.c
pkg/ft_print/ft_putstr.c
pkg/ft_print/ft_putnbr_base.c
pkg/ft_print/ft_putnbr.c
pkg/ft_print/ft_putnbr_base_padded.c
pkg/ft_print/ft_print.h
pkg/ft_list/delete_list.c
pkg/ft_list/list_accessors.c
pkg/ft_list/iter_list.c
pkg/ft_list/list_sort.c
pkg/ft_list/ft_list.c
pkg/ft_list/ft_list.h
pkg/ft_error/panic.c
pkg/ft_error/log_error.c
pkg/ft_error/ft_error.h
)
add_executable(ft_nm ${SOURCE_FT_NM})
target_link_libraries(ft_nm LINK_PUBLIC)