1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
############################################################################
# CMakeLists.txt file for building qcustomplot static library
############################################################################
set(library_name qcustomplot)
set(source_files qcustomplot.h qcustomplot.cpp)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
add_library(
${library_name}
STATIC
${source_files} ${mocfiles}
)
set(${library_name}_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR} PARENT_SCOPE)
set(${library_name}_LIBRARY ${library_name} PARENT_SCOPE)
if(NOT WIN32)
target_compile_options(${library_name}
PRIVATE -Wno-deprecated-declarations -Wno-implicit-fallthrough
-Wno-deprecated-enum-enum-conversion)
endif()
target_link_libraries(${library_name}
Qt6::Widgets
Qt6::PrintSupport
)
|