-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
47 lines (35 loc) · 941 Bytes
/
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
cmake_minimum_required (VERSION 3.12)
project (nana-example)
set_property (GLOBAL PROPERTY USE_FOLDERS ON)
set (CMAKE_CXX_STANDARD 14)
set (CMAKE_CXX_STANDARD_REQUIRED ON)
find_package(Threads)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/nana)
### APP
set (APP_NAME "${PROJECT_NAME}-helloworld")
set (EXAMPLES_PATH "${PROJECT_SOURCE_DIR}/example")
include_directories (
${NANA_INCLUDE_DIR}
${NANA_BINARY_PATH}
${CMAKE_CURRENT_BINARY_DIR}
)
# target_include_directories(${APP_NAME} PUBLIC )
file (GLOB APP_SOURCE_FILES "${EXAMPLES_PATH}/*.cpp")
message(STATUS "APP_SOURCE_FILES: ${APP_SOURCE_FILES}" )
add_executable (${APP_NAME}
${APP_SOURCE_FILES}
)
target_link_libraries (${APP_NAME}
nana
Threads::Threads
X11
rt
Xft
asound
fontconfig
Xcursor
stdc++fs
)
target_include_directories(${APP_NAME}
PUBLIC
)