32 lines
975 B
CMake
32 lines
975 B
CMake
cmake_minimum_required(VERSION 3.1.0 FATAL_ERROR)
|
|
|
|
# add project files
|
|
set(HEADER_FILES)
|
|
set(SRC_FILES main.cpp)
|
|
|
|
# set meta data
|
|
set(META_PROJECT_NAME findicons)
|
|
set(META_PROJECT_TYPE application)
|
|
set(META_PROJECT_VARNAME FIND_ICONS)
|
|
set(META_APP_NAME "Find-Icons")
|
|
set(META_APP_AUTHOR "Martchus")
|
|
set(META_APP_URL "https://github.com/${META_APP_AUTHOR}/${META_PROJECT_NAME}")
|
|
set(META_APP_DESCRIPTION "Finds icons required by Qt Widgets and Qt Quick applications")
|
|
set(META_CXX_STANDARD 17)
|
|
set(META_VERSION_MAJOR 0)
|
|
set(META_VERSION_MINOR 0)
|
|
set(META_VERSION_PATCH 1)
|
|
|
|
# find c++utilities
|
|
set(CONFIGURATION_PACKAGE_SUFFIX "" CACHE STRING "sets the suffix for find_package() calls to packages configured via c++utilities")
|
|
find_package(c++utilities${CONFIGURATION_PACKAGE_SUFFIX} 5.0.0 REQUIRED)
|
|
use_cpp_utilities()
|
|
|
|
use_standard_filesystem()
|
|
|
|
# include modules to apply configuration
|
|
include(BasicConfig)
|
|
include(WindowsResources)
|
|
include(AppTarget)
|
|
include(ConfigHeader)
|