Debian Codegraph @

plugins/plugman/CMakeLists.txt

raw
1 project(plugger)
2
3 include(GNUInstallDirs)
4
5 option(BUILD_EXAMPLE "Build the example app" OFF)
6 mark_as_advanced(BUILD_EXAMPLE)
7
8 # Now setup qml plugin install paths
9 if(DEFINED QT_IMPORTS_DIR)
10 message(STATUS "Qt import dir already set, install MazDB Quick Plugin to ${QT_IMPORTS_DIR}")
11 else()
12 if(EXISTS "/etc/debian_version")
13 set(QT_IMPORTS_DIR ${CMAKE_INSTALL_LIBDIR}/qt5/qml)
14 else()
15 set(QT_IMPORTS_DIR ${CMAKE_INSTALL_LIBDIR}/${CMAKE_LIBRARY_ARCHITECTURE}/qt5/qml)
16 endif()
17 endif()
18
19 add_subdirectory(src)
20 if(BUILD_EXAMPLE)
21 add_subdirectory(example)
22 endif()