-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathCMakeLists.txt
44 lines (27 loc) · 917 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
#
# Copyright (c) 2019-2024, Gilles Caulier, <caulier dot gilles at gmail dot com>
#
# Redistribution and use is allowed according to the terms of the BSD license.
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
cmake_minimum_required(VERSION "3.16.0")
project(dplugins-demo)
# Use common cmake macro from cmake/modules/ to install unistall plugins.
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules ${CMAKE_MODULE_PATH})
include(MacroInstall)
include_directories(${CMAKE_SOURCE_DIR}/common)
###
find_package(Qt6 QUIET COMPONENTS Core)
if(NOT Qt6_FOUND)
find_package(Qt5 REQUIRED COMPONENTS Core)
set(QT_VERSION_MAJOR 5)
else()
set(QT_VERSION_MAJOR 6)
endif()
message(STATUS "Suitable Qt${QT_VERSION_MAJOR} detected...")
###
add_subdirectory(bqm)
add_subdirectory(editor)
add_subdirectory(generic)
add_subdirectory(rawimport)
###
MACRO_ADD_UNINSTALL_TARGET()