-
Notifications
You must be signed in to change notification settings - Fork 3
/
CMakeLists.txt
39 lines (34 loc) · 1.12 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
# Minimum CMake version
cmake_minimum_required(VERSION 3.14)
# Name of the project
project(core-nodes)
# C++ standard
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED True)
include(FetchContent)
# gui-app-template library
FetchContent_Populate(
gui-app-template
GIT_REPOSITORY https://github.com/onurae/gui-app-template.git
GIT_TAG f4f2bdf5fba02811b1a0affa601067cb9cfefd55 # release-0.5.1
SOURCE_DIR ${PROJECT_SOURCE_DIR}/libs/gui-app-template
)
# pugixml library
FetchContent_Populate(
pugixml
GIT_REPOSITORY https://github.com/zeux/pugixml.git
GIT_TAG a0e064336317c9347a91224112af9933598714e9 # release-1.13.0
SOURCE_DIR ${PROJECT_SOURCE_DIR}/libs/pugixml-1.13.0
)
# Executable
add_subdirectory(libs/gui-app-template) # Add gui-app-template
file(GLOB SOURCES ${PROJECT_SOURCE_DIR}/${PROJECT_NAME}/*.?pp)
file(GLOB SOURCES_XML ${PROJECT_SOURCE_DIR}/libs/pugixml-1.13.0/src/*.?pp)
add_executable(CoreNodes ${SOURCES} ${SOURCES_XML})
target_link_libraries(CoreNodes
PRIVATE GuiAppTemplate
)
target_include_directories(CoreNodes
PRIVATE libs/gui-app-template
PRIVATE libs/pugixml-1.13.0/src
)