-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
46 lines (36 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
cmake_minimum_required(VERSION 3.16)
project("fexp"
VERSION ""
DESCRIPTION "Console file explorer written in C++."
HOMEPAGE_URL "https://github.com/niemiets/fexp"
LANGUAGES CXX
)
set(CURSES_NEED_NCURSES TRUE)
set(CURSES_NEED_WIDE TRUE)
find_package(Curses REQUIRED)
include_directories(${CURSES_INCLUDE_DIR})
if (CURSES_HAVE_NCURSES_NCURSES_H)
add_executable(${PROJECT_NAME}
src/main.cpp
src/App.cpp
src/App.h
)
target_compile_features(${PROJECT_NAME}
PUBLIC cxx_std_20
)
# target_sources(${PROJECT_NAME}
# PUBLIC
# FILE_SET headers
# TYPE HEADERS
# BASE_DIRS src
# FILES
# src/App.h
# )
target_link_libraries(${PROJECT_NAME} ${CURSES_LIBRARIES})
target_compile_options(${PROJECT_NAME}
PUBLIC -DNCURSES_STATIC
)
endif()
# target_link_libraries(fexp PRIVATE ${CURSES_LIBRARIES})
# include(GNUInstallDirs)
# install(TARGETS fexp DESTINATION ${CMAKE_INSTALL_BINDIR})