mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 16:37:47 +00:00
Ladybird/CMake: Install resources and Lagom libraries alongside ladybird
This setup should allow the package maintainers who are looking to distribute ladybird on their distributions to use CMake to install ladybird using cmake install rules rather than having to write their own
This commit is contained in:
parent
3403b1fd77
commit
488da351c0
3 changed files with 82 additions and 6 deletions
|
@ -6,6 +6,8 @@ project(ladybird
|
|||
DESCRIPTION "Ladybird Web Browser"
|
||||
)
|
||||
|
||||
include(GNUInstallDirs)
|
||||
|
||||
if (ANDROID)
|
||||
set(BUILD_SHARED_LIBS OFF)
|
||||
endif()
|
||||
|
@ -19,7 +21,7 @@ set(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
|
|||
# See slide 100 of the following ppt :^)
|
||||
# https://crascit.com/wp-content/uploads/2019/09/Deep-CMake-For-Library-Authors-Craig-Scott-CppCon-2019.pdf
|
||||
if (NOT APPLE)
|
||||
set(CMAKE_INSTALL_RPATH $ORIGIN)
|
||||
set(CMAKE_INSTALL_RPATH $ORIGIN;$ORIGIN/../${CMAKE_INSTALL_LIBDIR})
|
||||
endif()
|
||||
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
|
||||
|
||||
|
@ -92,8 +94,6 @@ add_custom_target(debug
|
|||
|
||||
qt_finalize_executable(ladybird)
|
||||
|
||||
install(TARGETS ladybird
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
BUNDLE DESTINATION bundle
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
)
|
||||
if(NOT CMAKE_SKIP_INSTALL_RULES)
|
||||
include(cmake/InstallRules.cmake)
|
||||
endif()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue