Update cmakelists
This commit is contained in:
@@ -5,14 +5,18 @@ find_package(Qt6 REQUIRED COMPONENTS Concurrent Core OpenGLWidgets PrintSupport
|
|||||||
|
|
||||||
qt_add_library(qwt STATIC)
|
qt_add_library(qwt STATIC)
|
||||||
|
|
||||||
set(CMAKE_AUTOUIC ON)
|
set_target_properties(
|
||||||
set(CMAKE_AUTOMOC ON)
|
qwt
|
||||||
set(CMAKE_AUTORCC ON)
|
PROPERTIES
|
||||||
|
AUTOMOC ON
|
||||||
|
AUTORCC ON
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
target_include_directories(qwt
|
target_include_directories(qwt
|
||||||
PUBLIC
|
INTERFACE
|
||||||
${CMAKE_CURRENT_LIST_DIR}/
|
${CMAKE_CURRENT_LIST_DIR}/
|
||||||
${PROJECT_BINARY_DIR}
|
# ${PROJECT_BINARY_DIR}/
|
||||||
)
|
)
|
||||||
|
|
||||||
file(GLOB_RECURSE QWT_SOURCES "*.cpp")
|
file(GLOB_RECURSE QWT_SOURCES "*.cpp")
|
||||||
@@ -24,12 +28,13 @@ target_sources(qwt
|
|||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(qwt
|
target_link_libraries(qwt
|
||||||
PUBLIC
|
PUBLIC
|
||||||
Qt6::Core
|
|
||||||
Qt6::OpenGLWidgets
|
PRIVATE
|
||||||
PRIVATE
|
Qt6::Core
|
||||||
Qt6::Widgets
|
Qt6::OpenGLWidgets
|
||||||
Qt6::Concurrent
|
Qt6::Widgets
|
||||||
Qt6::PrintSupport
|
Qt6::Concurrent
|
||||||
Qt6::Svg
|
Qt6::PrintSupport
|
||||||
|
Qt6::Svg
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user