You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
944 B
53 lines
944 B
set(PLUGIN "mainmenu")
|
|
|
|
set(HEADERS
|
|
lxqtmainmenu.h
|
|
menustyle.h
|
|
lxqtmainmenuconfiguration.h
|
|
)
|
|
|
|
set(SOURCES
|
|
lxqtmainmenu.cpp
|
|
menustyle.cpp
|
|
lxqtmainmenuconfiguration.cpp
|
|
)
|
|
|
|
set(MOCS
|
|
lxqtmainmenu.h
|
|
menustyle.h
|
|
lxqtmainmenuconfiguration.h
|
|
)
|
|
|
|
set(UIS
|
|
lxqtmainmenuconfiguration.ui
|
|
)
|
|
|
|
# optionally use libmenu-cache to generate the application menu
|
|
find_package(PkgConfig)
|
|
if(NOT WITHOUT_MENU_CACHE)
|
|
pkg_check_modules(MENU_CACHE
|
|
libmenu-cache>=0.3.3
|
|
)
|
|
endif()
|
|
|
|
if(MENU_CACHE_FOUND)
|
|
list(APPEND SOURCES xdgcachedmenu.cpp)
|
|
list(APPEND MOCS xdgcachedmenu.h)
|
|
|
|
include_directories(${MENU_CACHE_INCLUDE_DIRS})
|
|
add_definitions(-DHAVE_MENU_CACHE=1)
|
|
endif()
|
|
|
|
set(LIBRARIES
|
|
${LXQT_LIBRARIES}
|
|
${QTXDG_LIBRARIES}
|
|
${LXQT_GLOBALKEYS_LIBRARIES}
|
|
${LXQT_GLOBALKEYS_UI_LIBRARIES}
|
|
${MENU_CACHE_LIBRARIES}
|
|
)
|
|
|
|
set(QT_USE_QTXML 1)
|
|
set(QT_USE_QTDBUS 1)
|
|
|
|
BUILD_LXQT_PLUGIN(${PLUGIN})
|