mirror of
https://github.com/miracle-wm-org/miracle-wm.git
synced 2024-11-23 04:08:27 +03:00
Use GNUInstallDirs for install locations (#39)
This commit is contained in:
parent
032733b77d
commit
48dbe2cfbd
@ -20,6 +20,8 @@ pkg_check_modules(GLIB REQUIRED IMPORTED_TARGET glib-2.0)
|
||||
pkg_check_modules(YAML REQUIRED IMPORTED_TARGET yaml-cpp)
|
||||
pkg_check_modules(LIBEVDEV REQUIRED IMPORTED_TARGET libevdev)
|
||||
|
||||
include(GNUInstallDirs)
|
||||
|
||||
add_executable(miracle-wm
|
||||
src/main.cpp
|
||||
src/miracle_window_management_policy.cpp
|
||||
@ -38,10 +40,11 @@ target_include_directories(miracle-wm PUBLIC SYSTEM ${MIRAL_INCLUDE_DIRS})
|
||||
target_link_libraries( miracle-wm ${MIRAL_LDFLAGS} PkgConfig::YAML PkgConfig::GLIB PkgConfig::LIBEVDEV)
|
||||
|
||||
install(PROGRAMS ${CMAKE_BINARY_DIR}/bin/miracle-wm
|
||||
DESTINATION ${CMAKE_INSTALL_PREFIX}/bin
|
||||
DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
)
|
||||
|
||||
install(FILES session/usr/local/share/wayland-sessions/miracle-wm-non-snap.desktop
|
||||
DESTINATION /usr/share/wayland-sessions)
|
||||
configure_file(session/usr/local/share/wayland-sessions/miracle-wm-non-snap.desktop.in miracle-wm-non-snap.desktop @ONLY)
|
||||
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/miracle-wm-non-snap.desktop
|
||||
DESTINATION ${CMAKE_INSTALL_DATADIR}/wayland-sessions)
|
||||
|
||||
add_subdirectory(tests/)
|
||||
|
@ -1,5 +1,5 @@
|
||||
[Desktop Entry]
|
||||
Name=Miracle Non Snap
|
||||
Comment=A wayland tiling window manager based on Mir
|
||||
Exec=sh -l -c /usr/local/bin/miracle-wm
|
||||
Exec=sh -l -c @CMAKE_INSTALL_FULL_BINDIR@/miracle-wm
|
||||
Type=Application
|
Loading…
Reference in New Issue
Block a user