2022-04-19 04:42:18 +08:00
|
|
|
cmake_minimum_required(VERSION 3.16)
|
2019-06-20 21:18:58 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
message( STATUS )
|
|
|
|
message( STATUS "=============================================================================" )
|
|
|
|
message( STATUS "== JKQTPlotterLib Build Information ==" )
|
|
|
|
message( STATUS "=============================================================================" )
|
2022-07-23 19:59:23 +08:00
|
|
|
message( STATUS "Version: ${PROJECT_VERSION}")
|
2022-08-23 02:35:24 +08:00
|
|
|
message( STATUS "Build type: ${CMAKE_BUILD_TYPE}")
|
|
|
|
message( STATUS "Build types: ${CMAKE_CONFIGURATION_TYPES}")
|
2022-07-23 19:59:23 +08:00
|
|
|
message( STATUS "Using CMake: ${CMAKE_VERSION}")
|
|
|
|
message( STATUS " Generator: ${CMAKE_GENERATOR}")
|
|
|
|
message( STATUS "Using compiler: ${CMAKE_CXX_COMPILER_ID} ${CMAKE_CXX_COMPILER_VERSION}, platform: ${CMAKE_CXX_PLATFORM_ID}" )
|
|
|
|
message( STATUS "C++ Standard: C++ ${JKQtPlotter_QT_CXX_STANDARD}, required: ${JKQtPlotter_QT_CXX_STANDARD_REQUIRED}" )
|
|
|
|
message( STATUS "LIB-Architecture: CXX: ${CMAKE_CXX_LIBRARY_ARCHITECTURE} / BASE: ${CMAKE_LIBRARY_ARCHITECTURE}" )
|
|
|
|
message( STATUS "bit depth: ${JKQtPlotter_BIT_DEPTH} bit" )
|
|
|
|
message( STATUS "System Name: ${CMAKE_SYSTEM_NAME}" )
|
|
|
|
message( STATUS "Processor Name: ${CMAKE_SYSTEM_PROCESSOR}" )
|
|
|
|
message( STATUS "Using Qt: ${QT_VERSION}" )
|
|
|
|
message( STATUS " [at ${QT_DIR}]" )
|
2019-11-18 22:59:06 +08:00
|
|
|
if(JKQtPlotter_BUILD_INCLUDE_XITS_FONTS)
|
2022-07-23 19:59:23 +08:00
|
|
|
message( STATUS "XITS fonts: LINKED IN" )
|
2022-07-19 05:33:20 +08:00
|
|
|
else()
|
2022-07-23 19:59:23 +08:00
|
|
|
message( STATUS "XITS fonts: NOT AVAILABLE IN LIB" )
|
2019-11-18 22:59:06 +08:00
|
|
|
endif(JKQtPlotter_BUILD_INCLUDE_XITS_FONTS)
|
2022-07-19 05:33:20 +08:00
|
|
|
if(${JKQtPlotter_HAS_NO_PRINTER_SUPPORT})
|
2022-07-23 19:59:23 +08:00
|
|
|
message( STATUS "Print support: OFF" )
|
2022-07-19 05:33:20 +08:00
|
|
|
else()
|
2022-07-23 19:59:23 +08:00
|
|
|
message( STATUS "Print support: ON" )
|
2022-07-19 05:33:20 +08:00
|
|
|
endif()
|
2022-07-23 16:40:04 +08:00
|
|
|
if (JKQtPlotter_BUILD_WITH_PRECOMPILED_HEADERS)
|
2022-07-23 19:59:23 +08:00
|
|
|
message( STATUS "Precompiled Header: ON" )
|
2022-07-23 16:40:04 +08:00
|
|
|
else()
|
2022-07-23 19:59:23 +08:00
|
|
|
message( STATUS "Precompiled Header: OFF")
|
2022-07-23 16:40:04 +08:00
|
|
|
endif()
|
2022-07-23 19:59:23 +08:00
|
|
|
message( STATUS "Installing to: ${CMAKE_INSTALL_PREFIX}" )
|
2019-06-20 21:18:58 +08:00
|
|
|
message( STATUS "=============================================================================" )
|
|
|
|
message( STATUS )
|
|
|
|
|
2022-07-23 22:05:13 +08:00
|
|
|
message( STATUS )
|
|
|
|
message( STATUS "............................................................................." )
|
|
|
|
message( STATUS ".. BUILDING LIBRARIES" )
|
|
|
|
message( STATUS "............................................................................." )
|
|
|
|
|
|
|
|
|
2022-04-18 20:24:39 +08:00
|
|
|
configure_file(${CMAKE_CURRENT_LIST_DIR}/jkqtplotter_version.h.in
|
2019-06-22 22:39:53 +08:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/jkqtplotter_version.h)
|
2019-06-20 21:18:58 +08:00
|
|
|
|
|
|
|
|
|
|
|
include_directories(.)
|
|
|
|
|
|
|
|
add_subdirectory(jkqtcommon)
|
2022-07-23 21:31:56 +08:00
|
|
|
add_subdirectory(jkqtcommon_statistics_and_math)
|
2019-06-20 21:18:58 +08:00
|
|
|
add_subdirectory(jkqtmathtext)
|
|
|
|
add_subdirectory(jkqtfastplotter)
|
|
|
|
add_subdirectory(jkqtplotter)
|