mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-06-22 18:25:38 +02:00
build: install targets for f00bar binary + module plugins
Module plugins are (still) built in <build-dir>/modules. When installing, f00bar binary is installed to <install-dir>/bin, and the module plugins to <install-dir>/lib/f00bar. For this to work, we now also set RPATH correctly. Since the installed module plugins end up in a different location then when building, different settings is required for BUILD_RPATH and INSTALL_RPATH.
This commit is contained in:
parent
7f2501334d
commit
f7fd305821
3 changed files with 22 additions and 1 deletions
|
@ -84,4 +84,9 @@ target_compile_options(module-sdk INTERFACE ${CAIRO_CFLAGS_OTHER})
|
|||
target_include_directories(module-sdk INTERFACE ${CAIRO_INCLUDE_DIRS})
|
||||
target_link_libraries(module-sdk INTERFACE ${CMAKE_THREAD_LIBS_INIT})
|
||||
|
||||
set_property(TARGET f00bar PROPERTY INSTALL_RPATH \$ORIGIN/../lib/f00bar)
|
||||
set_property(TARGET f00bar PROPERTY BUILD_RPATH \$ORIGIN/modules)
|
||||
|
||||
install(TARGETS f00bar DESTINATION bin)
|
||||
|
||||
add_subdirectory(modules)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue