2019-06-20 21:18:58 +08:00
|
|
|
cmake_minimum_required(VERSION 3.0)
|
|
|
|
|
2019-11-24 17:42:23 +08:00
|
|
|
# Project Name and Version
|
|
|
|
project(JKQTPlotter LANGUAGES CXX VERSION 2019.11)
|
|
|
|
|
|
|
|
|
2019-11-18 22:59:06 +08:00
|
|
|
# set search path for CMake files
|
|
|
|
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
|
2019-11-10 22:35:07 +08:00
|
|
|
list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
|
2019-06-21 04:24:47 +08:00
|
|
|
# Find includes in the build directories
|
|
|
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
2019-06-20 21:18:58 +08:00
|
|
|
|
2019-11-18 22:59:06 +08:00
|
|
|
# Common Includes for JKQtPlotter
|
|
|
|
include(jkqtplotter_common_include)
|
2019-06-22 20:21:32 +08:00
|
|
|
|
2019-11-18 22:59:06 +08:00
|
|
|
# Project Name and Version
|
2019-11-19 01:46:08 +08:00
|
|
|
include(jkqtplotter_lib_properties)
|
2019-06-20 21:18:58 +08:00
|
|
|
|
2019-11-18 22:59:06 +08:00
|
|
|
# CMake options with default values and description texts
|
|
|
|
include(jkqtplotter_cmake_options)
|
2019-06-20 21:18:58 +08:00
|
|
|
|
2019-11-18 22:59:06 +08:00
|
|
|
# compiler settings for this lib
|
|
|
|
include(jkqtplotter_common_compilersettings)
|
2019-06-20 21:18:58 +08:00
|
|
|
|
2019-11-18 22:59:06 +08:00
|
|
|
# include Qt with appropriate options to build this lib
|
|
|
|
include(jkqtplotter_common_qtsettings)
|
2019-06-21 04:24:47 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
2019-11-18 22:59:06 +08:00
|
|
|
# now add subdirectories with the library code ...
|
2019-06-20 21:18:58 +08:00
|
|
|
add_subdirectory(lib)
|
2019-11-18 22:59:06 +08:00
|
|
|
# ... and optionally the examples
|
|
|
|
if(JKQtPlotter_BUILD_EXAMPLES)
|
2019-06-21 04:24:47 +08:00
|
|
|
add_subdirectory(examples)
|
2019-06-20 21:18:58 +08:00
|
|
|
endif()
|
|
|
|
|
2019-06-21 04:24:47 +08:00
|
|
|
|
|
|
|
|