-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
47 lines (35 loc) · 1.02 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.14)
set(ROOT_PRJ_NAME tbfm)
project(${ROOT_PRJ_NAME} LANGUAGES CXX)
set(ThirdParty_dir ${CMAKE_CURRENT_SOURCE_DIR}/Thirdparty)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
#set(CMAKE_INCLUDE_CURRENT_DIR ON)
file(GLOB_RECURSE headers
${CMAKE_CURRENT_SOURCE_DIR}/include/*.h
${CMAKE_CURRENT_SOURCE_DIR}/include/*.hpp
${CMAKE_CURRENT_SOURCE_DIR}/include/*.hxx
)
file(GLOB_RECURSE sources
${CMAKE_CURRENT_SOURCE_DIR}/src/*.c
${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/*.cxx
)
add_subdirectory(${ThirdParty_dir}/FTXUI EXCLUDE_FROM_ALL)
add_executable(${ROOT_PRJ_NAME}
main.cpp
${headers}
${sources}
)
target_link_libraries(${ROOT_PRJ_NAME} PRIVATE
ftxui::component
)
target_include_directories(${ROOT_PRJ_NAME} PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}/include
${ThirdParty_dir}/FTXUI/include
)
#install(TARGETS ${ROOT_PRJ_NAME}
# LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})