source: calamares/trunk/fuentes/CalamaresUse.cmake.in @ 7538

Last change on this file since 7538 was 7538, checked in by kbut, 13 months ago

sync with github

File size: 980 bytes
Line 
1# A setup-cmake-things-for-Calamares module.
2#
3# This module handles looking for dependencies and including
4# all of the Calamares macro modules, so that you can focus
5# on just using the macros to build Calamares modules.
6# Typical use looks like this:
7#
8# ```
9# find_package( Calamares REQUIRED )
10# include( "${CALAMARES_CMAKE_DIR}/CalamaresUse.cmake" )
11# ```
12#
13# The first CMake command finds Calamares (which will contain
14# this file), then adds the found location to the search path,
15# and then includes this file. After that, you can use
16# Calamares module and plugin macros.
17
18if( NOT CALAMARES_CMAKE_DIR )
19    message( FATAL_ERROR "Use find_package(Calamares) first." )
20endif()
21set( CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CALAMARES_CMAKE_DIR} )
22
23find_package( Qt5 @QT_VERSION@ CONFIG REQUIRED Core Widgets LinguistTools )
24
25include( CalamaresAddLibrary )
26include( CalamaresAddModuleSubdirectory )
27include( CalamaresAddPlugin )
28include( CalamaresAddBrandingSubdirectory )
29
Note: See TracBrowser for help on using the repository browser.