forked from cneben/QuickQanava
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
39 lines (31 loc) · 1.28 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
cmake_minimum_required(VERSION 3.5.0)
project(QuickQanava VERSION 0.11.0 LANGUAGES CXX)
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
add_compile_definitions(QT_DISABLE_DEPRECATED_BEFORE=0x050F00)
# Conan.io support
#if (EXISTS ${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
# include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
# conan_basic_setup()
#endif()
find_package(QT NAMES Qt6 Qt5 COMPONENTS Core Quick REQUIRED)
find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Core Qml Quick QuickControls2 REQUIRED)
message("Building with Qt" ${QT_VERSION_MAJOR})
option(QUICK_QANAVA_BUILD_SAMPLES "Build the samples" TRUE)
option(QUICK_QANAVA_BUILD_STATIC_QRC "Build *.qrc resources statically" TRUE)
option(QUICK_QANAVA_WINDOWS_DEPLOY "Use windeployqt on Windows" FALSE)
add_subdirectory(QuickContainers)
add_subdirectory(src)
if (${QUICK_QANAVA_BUILD_SAMPLES})
#add_subdirectory(samples/resizer)
#add_subdirectory(samples/navigable)
add_subdirectory(samples/nodes)
add_subdirectory(samples/cpp)
add_subdirectory(samples/edges)
add_subdirectory(samples/connector)
add_subdirectory(samples/groups)
add_subdirectory(samples/selection)
add_subdirectory(samples/style)
add_subdirectory(samples/dataflow)
add_subdirectory(samples/topology)
endif()
add_subdirectory(exports)