tianzhendong
2 years ago
4 changed files with 34 additions and 0 deletions
@ -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 |
|||
) |
Loading…
Reference in new issue