cmake
Build so for designer plugin
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
add_subdirectory(examples)
|
||||
add_subdirectory(playground)
|
||||
add_subdirectory(src)
|
||||
add_subdirectory(tests)
|
||||
add_subdirectory(tests)
|
||||
add_subdirectory(designer)
|
||||
|
||||
36
designer/CMakeLists.txt
Normal file
36
designer/CMakeLists.txt
Normal file
@@ -0,0 +1,36 @@
|
||||
find_package(QT NAMES Qt6 REQUIRED COMPONENTS Core Widgets UiPlugin Gui Designer)
|
||||
find_package(Qt6 REQUIRED COMPONENTS Core Widgets UiPlugin Gui Designer)
|
||||
|
||||
qt_add_plugin(qwt_designer)
|
||||
|
||||
target_include_directories(qwt_designer
|
||||
PRIVATE
|
||||
../src/
|
||||
${CMAKE_CURRENT_LIST_DIR}/
|
||||
# ${PROJECT_BINARY_DIR}/
|
||||
)
|
||||
|
||||
target_compile_definitions(qwt_designer
|
||||
PRIVATE
|
||||
"QWT_MOC_INCLUDE"
|
||||
)
|
||||
add_definitions(-DQT_PLUGIN)
|
||||
add_definitions(-DQT_NO_DEBUG)
|
||||
add_definitions(-DQT_SHARED)
|
||||
add_definitions(-DQDESIGNER_EXPORT_WIDGETS)
|
||||
|
||||
target_sources(qwt_designer
|
||||
PRIVATE
|
||||
qwt_designer_plugin.cpp
|
||||
qwt_designer_plugin.qrc
|
||||
)
|
||||
|
||||
target_link_libraries(qwt_designer
|
||||
PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
Qt6::UiPlugin
|
||||
Qt6::Widgets
|
||||
Qt6::Designer
|
||||
qwt
|
||||
)
|
||||
Reference in New Issue
Block a user