-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCMakeLists.txt
73 lines (65 loc) · 1.58 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
cmake_minimum_required(VERSION 3.16)
project(Escape LANGUAGES CXX)
# UTF Support
find_package(ICU REQUIRED COMPONENTS dt uc i18n)
if(NOT ICU_FOUND)
message(FATAL_ERROR "ICU not found")
endif()
# Utility Library Dependency
include(FetchContent)
FetchContent_Declare(
zzz
GIT_REPOSITORY https://github.com/a-n-t-h-o-n-y/zzz.git
GIT_TAG 9d7c047f47c81a95a5ea824075253618356593a2
)
FetchContent_MakeAvailable(zzz)
# Escape Library
add_library(escape STATIC
include/esc/area.hpp
include/esc/brush.hpp
include/esc/color.hpp
include/esc/esc.hpp
include/esc/event.hpp
include/esc/glyph.hpp
include/esc/io.hpp
include/esc/key.hpp
include/esc/mouse.hpp
include/esc/point.hpp
include/esc/sequence.hpp
include/esc/terminal.hpp
include/esc/terminfo.hpp
include/esc/trait.hpp
include/esc/detail/any_of.hpp
include/esc/detail/console_file.hpp
include/esc/detail/is_urxvt.hpp
include/esc/detail/mask.hpp
include/esc/detail/signals.hpp
include/esc/detail/transcode.hpp
include/esc/detail/tty_file.hpp
src/io.cpp
src/terminfo.cpp
src/terminal.cpp
src/sequence.cpp
src/detail/is_urxvt.cpp
src/detail/transcode.cpp
src/detail/console_file.cpp
src/detail/signals.cpp
)
target_include_directories(escape
PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}/include
)
target_link_libraries(escape
PUBLIC
zzz
ICU::dt
ICU::uc
ICU::i18n
)
target_compile_features(escape
PUBLIC
cxx_std_20
)
add_subdirectory(tools)
add_subdirectory(examples)
add_subdirectory(tests)