Skip to content
Snippets Groups Projects
Select Git revision
  • 5f2b191be0bb30c91ce986e552d3307a3332e294
  • development default protected
  • 3.2.x-stable
  • prepare
  • 6b369dc5
  • 3.1.x-stable
  • 3.0.x-stable
  • 2.4.x-stable
  • v3.2.61
  • v3.2.60
  • v3.2.59
  • v3.2.54
  • v3.2.53
  • v3.2.52
  • v3.2.51
  • v3.2.48
  • v3.2.45
  • v3.2.44.3
  • v3.2.44
  • v3.2.40
  • v3.2.13
  • v3.2.9
  • v3.2.8
  • v3.2.7
  • v3.2.6
  • v3.2.5
  • v3.2.4
  • v3.2.3
28 results

CalamaresUse.cmake.in

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    CalamaresUse.cmake.in 980 B
    # A setup-cmake-things-for-Calamares module.
    #
    # This module handles looking for dependencies and including
    # all of the Calamares macro modules, so that you can focus
    # on just using the macros to build Calamares modules.
    # Typical use looks like this:
    #
    # ```
    # find_package( Calamares REQUIRED )
    # include( "${CALAMARES_CMAKE_DIR}/CalamaresUse.cmake" )
    # ```
    #
    # The first CMake command finds Calamares (which will contain
    # this file), then adds the found location to the search path,
    # and then includes this file. After that, you can use
    # Calamares module and plugin macros.
    
    if( NOT CALAMARES_CMAKE_DIR )
        message( FATAL_ERROR "Use find_package(Calamares) first." )
    endif()
    set( CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CALAMARES_CMAKE_DIR} )
    
    find_package( Qt5 @QT_VERSION@ CONFIG REQUIRED Core Widgets LinguistTools )
    
    include( CalamaresAddLibrary )
    include( CalamaresAddModuleSubdirectory )
    include( CalamaresAddPlugin )
    include( CalamaresAddBrandingSubdirectory )