Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
38 lines (28 sloc) 969 Bytes
# Copyright (c) 2015, Ruslan Baratov
# All rights reserved.
cmake_minimum_required(VERSION 3.0)
include("cmake/HunterGate.cmake")
HunterGate(
URL "https://github.com/ruslo/hunter/archive/v0.12.24.tar.gz"
SHA1 "a25a7fa55c204a8126efd1f48593a662925b26da"
)
project(Example)
option(TEST_EXTERNAL "Test Hunter's external module instead of local file" OFF)
hunter_add_package(Qt)
set(qml_dir "${CMAKE_CURRENT_BINARY_DIR}/qml")
file(REMOVE_RECURSE "${qml_dir}")
set(expected_file "${qml_dir}/QtMultimedia/Video.qml")
if(TEST_EXTERNAL)
hunter_add_package(QtQmlManager)
list(APPEND CMAKE_MODULE_PATH "${QTQMLMANAGER_ROOT}/cmake")
else()
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/../cmake")
endif()
include(QtCopyQmlTo)
if(EXISTS "${expected_file}")
message(FATAL_ERROR "Unexpected file: ${expected_file}")
endif()
QtCopyQmlTo(${qml_dir})
if(NOT EXISTS "${expected_file}")
message(FATAL_ERROR "File not found: ${expected_file}")
endif()
You can’t perform that action at this time.