summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
blob: c76309bf2a6f7f7c19b8090b81283a45d3c63d40 (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
cmake_minimum_required(VERSION 3.14.0)

project(QtSvg
    VERSION 5.14.0
    DESCRIPTION "Qt SVG Libraries"
    HOMEPAGE_URL "https://qt.io/"
    LANGUAGES CXX C
)

find_package(Qt5 ${PROJECT_VERSION} CONFIG REQUIRED COMPONENTS BuildInternals Core Gui Widgets)
qt_build_repo_begin()

add_subdirectory(src)

if (BUILD_TESTING)
    find_package(Qt5 ${PROJECT_VERSION} CONFIG REQUIRED COMPONENTS Test Xml)
    add_subdirectory(tests)
endif()

if (BUILD_EXAMPLES)
    # TODO: Implement me
    #add_subdirectory(examples)
endif()

qt_build_repo_end()