Files
sqlitebrowser/libs/qcustomplot-source/CMakeLists.txt
T
Martin Kleusberg 060e925074 build: Make CMakeLists.txt easier to use
This adds the moc header files to the dependencies of the executable in
the cmake project so they show up in their proper location in QtCreator.
This makes it more pleasant to use the cmake files as a QtCreator
project file.

Also rework the CMakeLists.txt file a bit by fixing whitespace issues,
rearranging some blocks and unifying the code style a bit.
2021-08-13 14:47:06 +02:00

19 lines
400 B
CMake

cmake_minimum_required(VERSION 2.8.12.2)
set(CMAKE_AUTOMOC ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
find_package(Qt5 REQUIRED COMPONENTS Widgets PrintSupport)
set(QCUSTOMPLOT_SRC
qcustomplot.cpp
)
set(QCUSTOMPLOT_MOC_HDR
qcustomplot.h
)
add_library(qcustomplot ${QCUSTOMPLOT_SRC} ${QCUSTOMPLOT_MOC_HDR} ${QCUSTOMPLOT_MOC})
target_link_libraries(qcustomplot Qt5::Widgets Qt5::PrintSupport)