-
Notifications
You must be signed in to change notification settings - Fork 8
/
CMakeLists.txt
38 lines (24 loc) · 927 Bytes
/
CMakeLists.txt
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
26
27
28
29
30
31
32
33
34
35
cmake_minimum_required(VERSION 3.0)
# Project Name and Version
project(JKQtExtras LANGUAGES CXX VERSION 2020.01)
# set search path for CMake files
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
# Find includes in the build directories
set(CMAKE_INCLUDE_CURRENT_DIR ON)
# Common Includes for JKQtExtras
include(jkqtextras_common_include)
# Project Name and Version
include(jkqtextras_lib_properties)
# CMake options with default values and description texts
include(jkqtextras_cmake_options)
# compiler settings for this lib
include(jkqtextras_common_compilersettings)
# include Qt with appropriate options to build this lib
include(jkqtextras_common_qtsettings)
# now add subdirectories with the library code ...
add_subdirectory(lib)
# ... and optionally the examples
if(JKQtExtras_BUILD_EXAMPLES)
add_subdirectory(examples)
endif()