mirror of
https://github.com/jkriege2/JKQtPlotter.git
synced 2024-11-15 18:15:52 +08:00
4347d27c04
1. added several new (JKQTPMathImageBone, JKQTPMathImageCool, JKQTPMathImageCopper, JKQTPMathImageAutumn, JKQTPMathImageSeismic, JKQTPMathImageTerrain, JKQTPMathImageViridis, JKQTPMathImageMagma, JKQTPMathImageInferno, JKQTPMathImagePlasma) 2. reworked LUT-types (now a QVector, instead of a C-array, suing malloc) 3. reworked available functions to build LUTs (cleanup, more options, clearer names) 4. added functions to load palettes from files 5. Improved documentation * added example for user-controlled color palettes
29 lines
749 B
CMake
29 lines
749 B
CMake
cmake_minimum_required(VERSION 3.0)
|
|
|
|
set(EXAMPLE_NAME imageplot_userpal)
|
|
set(EXENAME jkqtptest_${EXAMPLE_NAME})
|
|
|
|
message( STATUS ".. Building Example ${EXAMPLE_NAME}" )
|
|
|
|
|
|
# Set up source files
|
|
set(SOURCES ${EXAMPLE_NAME}.cpp)
|
|
set(HEADERS )
|
|
set(RESOURCES imageplot_userpal.qrc )
|
|
set(UIS )
|
|
|
|
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
|
target_include_directories(${EXENAME} PRIVATE ../../lib)
|
|
if(BUILD_STATIC_LIBS)
|
|
target_link_libraries(${EXENAME} JKQTPlotterLib)
|
|
elseif(BUILD_SHARED_LIBS)
|
|
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
|
|
endif()
|
|
|
|
|
|
|
|
# Installation
|
|
if(LIB_INSTALL)
|
|
install(TARGETS ${EXENAME} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
|
|
endif(LIB_INSTALL)
|