2019-06-20 21:18:58 +08:00
|
|
|
cmake_minimum_required(VERSION 3.0)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
message( STATUS )
|
|
|
|
message( STATUS "=============================================================================" )
|
|
|
|
message( STATUS "== JKQTPlotterLib Build Information ==" )
|
|
|
|
message( STATUS "=============================================================================" )
|
2019-06-22 22:39:53 +08:00
|
|
|
message( STATUS "Version: ${PROJECT_VERSION}")
|
2019-06-20 21:18:58 +08:00
|
|
|
if (CMAKE_BUILD_TYPE)
|
2019-11-18 22:59:06 +08:00
|
|
|
message( STATUS "Build type: ${CMAKE_BUILD_TYPE}")
|
2019-06-20 21:18:58 +08:00
|
|
|
endif(CMAKE_BUILD_TYPE)
|
|
|
|
message( STATUS "Using compiler: ${CMAKE_CXX_COMPILER_ID} ${CMAKE_CXX_COMPILER_VERSION}" )
|
2019-11-18 22:59:06 +08:00
|
|
|
message( STATUS "Architecture: ${CMAKE_CXX_LIBRARY_ARCHITECTURE} / ${CMAKE_LIBRARY_ARCHITECTURE}" )
|
|
|
|
message( STATUS "System Name: ${CMAKE_SYSTEM_NAME}" )
|
|
|
|
message( STATUS "Processor Name: ${CMAKE_SYSTEM_PROCESSOR}" )
|
2019-06-20 21:18:58 +08:00
|
|
|
message( STATUS "Using Qt: ${Qt5_VERSION}" )
|
|
|
|
message( STATUS " [at ${Qt5_DIR}]" )
|
2019-11-18 22:59:06 +08:00
|
|
|
if(JKQtPlotter_BUILD_INCLUDE_XITS_FONTS)
|
2019-06-20 21:18:58 +08:00
|
|
|
message( STATUS "Using XITS fonts" )
|
2019-11-18 22:59:06 +08:00
|
|
|
endif(JKQtPlotter_BUILD_INCLUDE_XITS_FONTS)
|
2019-06-20 21:18:58 +08:00
|
|
|
message( STATUS "Installing to: ${CMAKE_INSTALL_PREFIX}" )
|
|
|
|
message( STATUS "=============================================================================" )
|
|
|
|
message( STATUS )
|
|
|
|
|
2019-06-22 22:39:53 +08:00
|
|
|
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/jkqtplotter_version.h.in
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/jkqtplotter_version.h)
|
2019-06-20 21:18:58 +08:00
|
|
|
|
|
|
|
|
|
|
|
include_directories(.)
|
|
|
|
|
|
|
|
add_subdirectory(jkqtcommon)
|
|
|
|
add_subdirectory(jkqtmathtext)
|
|
|
|
add_subdirectory(jkqtfastplotter)
|
|
|
|
add_subdirectory(jkqtplotter)
|