|
|
@ -8,6 +8,8 @@ set(CMAKE_AUTOUIC ON)
|
|
|
|
set(CMAKE_AUTOMOC ON)
|
|
|
|
set(CMAKE_AUTOMOC ON)
|
|
|
|
set(CMAKE_AUTORCC ON)
|
|
|
|
set(CMAKE_AUTORCC ON)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
set(REQUIRED_MENUCACHE_VERSION "0.3.3")
|
|
|
|
|
|
|
|
|
|
|
|
include(CMakeDependentOption)
|
|
|
|
include(CMakeDependentOption)
|
|
|
|
include(GNUInstallDirs)
|
|
|
|
include(GNUInstallDirs)
|
|
|
|
|
|
|
|
|
|
|
@ -39,9 +41,7 @@ endif ()
|
|
|
|
|
|
|
|
|
|
|
|
if (USE_MENU_CACHE)
|
|
|
|
if (USE_MENU_CACHE)
|
|
|
|
# optionally use libmenu-cache from lxde to generate the application menu
|
|
|
|
# optionally use libmenu-cache from lxde to generate the application menu
|
|
|
|
pkg_check_modules(MENU_CACHE REQUIRED QUIET
|
|
|
|
find_package(MenuCache "${REQUIRED_MENUCACHE_VERSION}" REQUIRED)
|
|
|
|
libmenu-cache>=0.3.3
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
|
|
if (RUNNER_MATH)
|
|
|
|
if (RUNNER_MATH)
|
|
|
@ -80,7 +80,7 @@ set(lxqt-runner_LIBRARIES
|
|
|
|
lxqt
|
|
|
|
lxqt
|
|
|
|
lxqt-globalkeys
|
|
|
|
lxqt-globalkeys
|
|
|
|
lxqt-globalkeys-ui
|
|
|
|
lxqt-globalkeys-ui
|
|
|
|
${MENU_CACHE_LIBRARIES}
|
|
|
|
${MENUCACHE_LIBRARIES}
|
|
|
|
${QTX_LIBRARIES}
|
|
|
|
${QTX_LIBRARIES}
|
|
|
|
${MUPARSER_LDFLAGS}
|
|
|
|
${MUPARSER_LDFLAGS}
|
|
|
|
)
|
|
|
|
)
|
|
|
@ -127,7 +127,7 @@ if (RUNNER_MATH)
|
|
|
|
endif ()
|
|
|
|
endif ()
|
|
|
|
|
|
|
|
|
|
|
|
target_include_directories(${PROJECT_NAME}
|
|
|
|
target_include_directories(${PROJECT_NAME}
|
|
|
|
PRIVATE "$<$<BOOL:${MENU_CACHE_FOUND}>:${MENU_CACHE_INCLUDE_DIRS}>"
|
|
|
|
PRIVATE "$<$<BOOL:${MENUCACHE_FOUND}>:${MENUCACHE_INCLUDE_DIRS}>"
|
|
|
|
PRIVATE "$<$<BOOL:${MUPARSER_FOUND}>:${MUPARSER_INCLUDE_DIRS}>"
|
|
|
|
PRIVATE "$<$<BOOL:${MUPARSER_FOUND}>:${MUPARSER_INCLUDE_DIRS}>"
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
@ -135,7 +135,7 @@ target_compile_definitions(${PROJECT_NAME}
|
|
|
|
PRIVATE "$<$<BOOL:${RUNNER_MATH}>:MATH_ENABLED>"
|
|
|
|
PRIVATE "$<$<BOOL:${RUNNER_MATH}>:MATH_ENABLED>"
|
|
|
|
PRIVATE "$<$<BOOL:${RUNNER_VBOX}>:VBOX_ENABLED>"
|
|
|
|
PRIVATE "$<$<BOOL:${RUNNER_VBOX}>:VBOX_ENABLED>"
|
|
|
|
PRIVATE "$<$<BOOL:${RUNNER_VBOX_HEADLESS}>:VBOX_HEADLESS_ENABLED>"
|
|
|
|
PRIVATE "$<$<BOOL:${RUNNER_VBOX_HEADLESS}>:VBOX_HEADLESS_ENABLED>"
|
|
|
|
PRIVATE "$<$<BOOL:${MENU_CACHE_FOUND}>:HAVE_MENU_CACHE=1>"
|
|
|
|
PRIVATE "$<$<BOOL:${MENUCACHE_FOUND}>:HAVE_MENU_CACHE=1>"
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
target_link_libraries(${PROJECT_NAME}
|
|
|
|
target_link_libraries(${PROJECT_NAME}
|
|
|
@ -148,13 +148,3 @@ install(TARGETS
|
|
|
|
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
|
|
|
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
|
|
|
COMPONENT Runtime
|
|
|
|
COMPONENT Runtime
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
# building tarball with CPack -------------------------------------------------
|
|
|
|
|
|
|
|
include(InstallRequiredSystemLibraries)
|
|
|
|
|
|
|
|
set(CPACK_PACKAGE_VERSION_MAJOR ${LXQT_MAJOR_VERSION})
|
|
|
|
|
|
|
|
set(CPACK_PACKAGE_VERSION_MINOR ${LXQT_MINOR_VERSION})
|
|
|
|
|
|
|
|
set(CPACK_PACKAGE_VERSION_PATCH ${LXQT_PATCH_VERSION})
|
|
|
|
|
|
|
|
set(CPACK_GENERATOR TBZ2)
|
|
|
|
|
|
|
|
set(CPACK_SOURCE_GENERATOR TBZ2)
|
|
|
|
|
|
|
|
set(CPACK_SOURCE_IGNORE_FILES /build/;.gitignore;.*~;.git;.kdev4;temp)
|
|
|
|
|
|
|
|
include(CPack)
|
|
|
|
|
|
|
|