-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
51 lines (41 loc) · 1.06 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
cmake_minimum_required(VERSION 3.0)
project(bfi C)
set(CMAKE_C_STANDARD 11)
set(CMAKE_VERBOSE_MAKEFILE on)
include_directories(/usr/include/readline)
set(CMAKE_C_FLAGS "-lreadline")
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
endif()
set(CMAKE_CXX_FLAGS "-Wall -Wextra")
set(CMAKE_CXX_FLAGS_DEBUG "-g")
set(CMAKE_CXX_FLAGS_RELEASE "-O3")
include_directories(src)
add_executable(bfi
src/brainfuck.h
src/compress.c
src/compress.h
src/err_lib.c
src/err_lib.h
src/execute.c
src/execute.h
src/file_reader.c
src/file_reader.h
src/help.h
src/lib-ttycolor.c
src/lib-ttycolor.h
src/lib_args.c
src/lib_args.h
src/lib_files.c
src/lib_files.h
src/lib_inter.c
src/lib_inter.h
src/main.c
src/mem_lib.c
src/mem_lib.h
src/warn_lib.c
src/warn_lib.h)
target_link_libraries(bfi readline)
install(TARGETS bfi
RUNTIME DESTINATION bin)
install(FILES man/bfi.1 DESTINATION /usr/share/man/man1)