blob: 23388099718774b61e6942dd39dba2c9c74dea5a (
plain)
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
|
include(cmake/Macros/icecc.cmake) # this must be the first line!
cmake_minimum_required(VERSION 3.16)
cmake_policy(VERSION 3.16)
project(pysidebindings)
include(cmake/PySideSetup.cmake)
add_subdirectory(libpyside)
find_package(Qt${QT_MAJOR_VERSION}Designer)
if(Qt${QT_MAJOR_VERSION}UiTools_FOUND AND Qt${QT_MAJOR_VERSION}Designer_FOUND)
add_subdirectory(plugins/uitools)
add_subdirectory(plugins/designer)
endif()
add_subdirectory(PySide6)
if(BUILD_TESTS)
enable_testing()
add_subdirectory(tests)
endif()
if(QT_SRC_DIR AND SPHINX_BUILD AND DOT_EXEC AND NOT SKIP_DOCS)
add_subdirectory(doc)
else()
set(DOCS_TARGET_DISABLED_MESSAGE "apidoc generation targets disabled.")
if(NOT QT_SRC_DIR)
message(STATUS "QT_SRC_DIR variable not set, ${DOCS_TARGET_DISABLED_MESSAGE}")
elseif(NOT SPHINX_BUILD)
message(STATUS "sphinx-build command not found, ${DOCS_TARGET_DISABLED_MESSAGE}")
elseif(NOT DOT_EXEC)
message(STATUS "graphviz not found, ${DOCS_TARGET_DISABLED_MESSAGE}")
else()
message(STATUS "Unknown issue occurred, ${DOCS_TARGET_DISABLED_MESSAGE}")
endif()
endif()
|