Skip to content

Commit

Permalink
fix building qith latest ecm changes
Browse files Browse the repository at this point in the history
  • Loading branch information
milohr committed Dec 19, 2023
1 parent cbfce0a commit dd9eb61
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion casklib/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR})

ecm_add_qml_module(${PROJECT_NAME} URI "org.maui.cask" VERSION 1.0 CLASSNAME CaskPlugin)
add_library(${PROJECT_NAME} SHARED)
ecm_add_qml_module(${PROJECT_NAME} URI "org.maui.cask" VERSION 1.0 CLASS_NAME CaskPlugin)

set(caskplugin_SRCS
code/caskplugin.cpp
Expand Down
4 changes: 3 additions & 1 deletion plugins/polkit/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/code)

ecm_add_qml_module(${PROJECT_NAME} URI "org.cask.polkit" VERSION 1.0 CLASSNAME CaskPolkitPlugin)
add_library(${PROJECT_NAME} SHARED)
ecm_add_qml_module(${PROJECT_NAME} URI "org.cask.polkit" VERSION 1.0 CLASS_NAME CaskPolkitPlugin)

set(caskpolkit_SRCS
code/polkitagentlistener.cpp
Expand All @@ -30,6 +31,7 @@ target_include_directories(${PROJECT_NAME}
target_include_directories(${PROJECT_NAME} PUBLIC "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR};${CMAKE_CURRENT_BINARY_DIR};>")

target_link_libraries(${PROJECT_NAME}
PRIVATE
Qt6::Core
Qt6::Qml
Qt6::DBus
Expand Down

0 comments on commit dd9eb61

Please sign in to comment.