Refactor CMakeLists, targetify everything

This commit is contained in:
Long Nguyen
2022-06-11 16:09:59 +07:00
parent 179d8c5280
commit 18de6db149
8 changed files with 182 additions and 105 deletions

View File

@@ -15,4 +15,7 @@ set(QCUSTOMPLOT_MOC_HDR
add_library(qcustomplot ${QCUSTOMPLOT_SRC} ${QCUSTOMPLOT_MOC_HDR} ${QCUSTOMPLOT_MOC})
target_include_directories(qcustomplot INTERFACE ${CMAKE_CURRENT_LIST_DIR})
target_link_libraries(qcustomplot Qt5::Widgets Qt5::PrintSupport)
add_library(QCustomPlot::QCustomPlot ALIAS qcustomplot)