-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
52 lines (48 loc) · 1.16 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
# lower the required version only if tested to be working
cmake_minimum_required(VERSION 3.1)
project(asciivn LANGUAGES C)
set(HEADERS
asciibuffer.h
asciibufferfill.h
asciibufferssim.h
xbmutils.h
charset.h
imagebuffer.h
imagemanip.h
imagemanip_kernel.h
event.h
terminal.h
slides.h
slidebuilder.h
stringmap.h
dialog.h
kernels.h
testimage.h)
set(SOURCES
main.c
asciibuffer.c
asciibufferfill.c
asciibufferssim.c
xbmutils.c
charset.c
imagebuffer.c
imagemanip.c
imagemanip_kernel.c
event.c
terminal.c
slides.c
slidebuilder.c
stringmap.c
dialog.c
kernels.c
testimage.c)
find_package(PNG REQUIRED)
find_package(ZLIB REQUIRED)
add_executable(asciivn ${SOURCES})
target_include_directories(asciivn PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}")
set_property(TARGET asciivn PROPERTY C_STANDARD 11)
target_compile_options(asciivn BEFORE PRIVATE "-O3" "-Wall" "-g3" "-ftree-vectorize" "-march=native")
target_link_libraries(asciivn PRIVATE PNG::PNG ZLIB::ZLIB m)
install(FILES dog-background.png wae.png dog.png christmas-anime-lineart.png DESTINATION bin)
install(DIRECTORY fonts DESTINATION bin)
install(TARGETS asciivn DESTINATION bin)