Skip to content

Commit

Permalink
update build system to make it compile on Qt6
Browse files Browse the repository at this point in the history
  • Loading branch information
mhogomchungu committed Jun 7, 2024
1 parent 37be881 commit b33bbdb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions zuluCrypt-gui/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ set( UI_FILES createfile.ui
showluksslots.ui
)

set( MOC_FILES
set( zuluCryptMOC_FILES
cryptoinfo.h
about.h
dialogok.h
Expand Down Expand Up @@ -87,7 +87,7 @@ set( SRC

if(BUILD_WITH_QT6)

add_executable( zuluCrypt-gui ${MOC_FILES} ${UI_FILES} ${SRC} icon.qrc )
add_executable( zuluCrypt-gui ${zuluCryptMOC_FILES} ${UI_FILES} ${SRC} icon.qrc )

set_target_properties( zuluCrypt-gui PROPERTIES INSTALL_RPATH "${CMAKE_INSTALL_FULL_LIBDIR}" )

Expand All @@ -102,7 +102,7 @@ else()
INCLUDE_DIRECTORIES( ${CMAKE_BINARY_DIR} )

Qt5_WRAP_UI( UI ${UI_FILES} )
Qt5_WRAP_CPP( MOC ${MOC_FILES} )
Qt5_WRAP_CPP( MOC ${zuluCryptMOC_FILES} )
Qt5_ADD_RESOURCES( TRAY_RC_SRCS icon.qrc )

add_executable( zuluCrypt-gui ${MOC} ${UI} ${SRC} ${TRAY_RC_SRCS} )
Expand Down
6 changes: 3 additions & 3 deletions zuluCrypt-gui/sharedObjects/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ set( SRC
../../zuluMount-gui/volumeproperty.cpp
)

set( MOC_FILES
set( SHARED_OBJ_MOC_FILES
../dialogok.h
../dialogmsg.h
../readonlywarning.h
Expand Down Expand Up @@ -57,7 +57,7 @@ add_definitions( -D_FILE_OFFSET_BITS=64 -Wextra -Wall -pedantic -I${PROJECT_BINA

if(BUILD_WITH_QT6)

add_library( sharedObject STATIC ${MOC_FILES} ${SRC} ${UI_FILES} icon.qrc )
add_library( sharedObject STATIC ${SHARED_OBJ_MOC_FILES} ${SRC} ${UI_FILES} icon.qrc )

if( BUILDKWALLET )
target_link_libraries( sharedObject -lgcrypt lxqt-wallet ${kwallet_library} -lblkid ${Qt6Network_LIBRARIES} mhogomchungu_task )
Expand All @@ -66,7 +66,7 @@ if(BUILD_WITH_QT6)
endif()
else()
Qt5_WRAP_UI( UI ${UI_FILES} )
Qt5_WRAP_CPP( MOC ${MOC_FILES} )
Qt5_WRAP_CPP( MOC ${SHARED_OBJ_MOC_FILES} )
Qt5_ADD_RESOURCES( ICON icon.qrc )

add_library( sharedObject STATIC ${MOC} ${SRC} ${UI_FILES} ${ICON} )
Expand Down
6 changes: 3 additions & 3 deletions zuluMount-gui/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ set (UI_FILES zulumount.ui
../zuluCrypt-gui/openvolume.ui
)

set(MOC_FILES zulumount.h
set(zMOC_FILES zulumount.h
keydialog.h
mountpartition.h
oneinstance.h
Expand Down Expand Up @@ -58,7 +58,7 @@ if(BUILD_WITH_QT6)

add_definitions( ${Qt6Widgets_DEFINITIONS} )

add_executable( zuluMount-gui ${MOC_FILES} ${UI_FILES} ${SRC} icon.qrc )
add_executable( zuluMount-gui ${zMOC_FILES} ${UI_FILES} ${SRC} icon.qrc )

TARGET_LINK_LIBRARIES( zuluMount-gui sharedObject lxqt-wallet ${Qt6Widgets_LIBRARIES} ${Qt6Core_LIBRARIES} ${Qt6Widgets_LIBRARIES} ${Qt6Network_LIBRARIES} ${blkid} zuluCryptPluginManager )
else()
Expand All @@ -68,7 +68,7 @@ else()

add_definitions( ${Qt5Widgets_DEFINITIONS} )
QT5_WRAP_UI( UI ${UI_FILES} )
QT5_WRAP_CPP(MOC ${MOC_FILES} )
QT5_WRAP_CPP(MOC ${zMOC_FILES} )
QT5_ADD_RESOURCES( TRAY_RC_SRCS icon.qrc )

add_executable( zuluMount-gui ${MOC} ${UI} ${SRC} ${TRAY_RC_SRCS} )
Expand Down

0 comments on commit b33bbdb

Please sign in to comment.