Browse Source

add cmakelists.txt

master
tianzhendong 2 years ago
parent
commit
3a848ad908
  1. 34
      CMakeLists.txt
  2. 0
      src/qcustomplot.cpp
  3. 0
      src/qcustomplot.h
  4. 0
      src/qcustomplot_global.h

34
CMakeLists.txt

@ -0,0 +1,34 @@
MESSAGE(STATUS "qcustomplot folder")
PROJECT(QCustomPlot)
#set(CMAKE_INCLUDE_CURRENT_DIR ON)
#
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_CXX_STANDARD 17)
# qt
find_package(Qt5 COMPONENTS
Core
Gui
Widgets
PrintSupport
REQUIRED)
aux_source_directory(${PROJECT_SOURCE_DIR}/src/ SRC_FILES)
#message(${PROJECT_SOURCE_DIR})
include_directories(${PROJECT_SOURCE_DIR}src/)
add_library(${PROJECT_NAME} SHARED
${SRC_FILES})
target_link_libraries(${PROJECT_NAME}
Qt5::Core
Qt5::Gui
Qt5::Widgets
Qt5::PrintSupport
)

0
qcustomplot.cpp → src/qcustomplot.cpp

0
qcustomplot.h → src/qcustomplot.h

0
qcustomplot_global.h → src/qcustomplot_global.h

Loading…
Cancel
Save