mirror of
https://github.com/jkriege2/JKQtPlotter.git
synced 2024-12-27 03:00:55 +08:00
29 lines
885 B
CMake
29 lines
885 B
CMake
cmake_minimum_required(VERSION 3.23)
|
|
|
|
set(EXAMPLE_NAME ui_bind_scrollbar)
|
|
set(EXENAME jkqtptest_${EXAMPLE_NAME})
|
|
|
|
message( STATUS ".. Building Example ${EXAMPLE_NAME}" )
|
|
|
|
|
|
# Set up source files
|
|
set(SOURCES ui_bind_scrollbar.cpp )
|
|
set(RESOURCES )
|
|
set(UIS )
|
|
|
|
add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
|
|
target_link_libraries(${EXENAME} JKQTPExampleToolsLib)
|
|
target_include_directories(${EXENAME} PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/../../lib)
|
|
|
|
target_link_libraries(${EXENAME} ${jkqtplotter_namespace}JKQTPlotter${jkqtplotter_LIBNAME_VERSION_PART})
|
|
|
|
# precomiled headers to speed up compilation
|
|
target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
|
|
|
|
|
|
# Installation
|
|
install(TARGETS ${EXENAME} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
|
|
|
|
#Installation of Qt DLLs on Windows
|
|
jkqtplotter_deployqt(${EXENAME})
|