From 21b2e249bcb5e45cf8e19154c240b2f2457995bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Tue, 12 Feb 2019 22:12:35 +0100 Subject: [PATCH] cmake: install header files --- CMakeLists.txt | 20 +++++++++++++++++++- bar/CMakeLists.txt | 2 ++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b94966d..ee33aa3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -54,6 +54,7 @@ if (ENABLE_X11) set_property(TARGET xcb-stuff PROPERTY POSITION_INDEPENDENT_CODE 1) endif () + install(FILES xcb.h DESTINATION include/f00bar) endif () if (ENABLE_WAYLAND) @@ -64,8 +65,9 @@ endif () add_subdirectory(bar) add_executable(f00bar - config.c config.h + color.h config-verify.c config-verify.h + config.c config.h decoration.h font.c font.h log.c log.h @@ -74,6 +76,7 @@ add_executable(f00bar particle.c particle.h plugin.c plugin.h tag.c tag.h + tllist.h yml.c yml.h ) @@ -90,6 +93,21 @@ set_property(TARGET f00bar PROPERTY BUILD_RPATH "\$ORIGIN/modules;\$ORIGIN/particles;\$ORIGIN/decorations") install(TARGETS f00bar DESTINATION bin) +install(FILES + color.h + config.h + config-verify.h + decoration.h + font.h + log.h + module.h + particle.h + tag.h + tllist.h + yml.h + + DESTINATION include/f00bar +) set(enabled_modules "") set(enabled_particles "") diff --git a/bar/CMakeLists.txt b/bar/CMakeLists.txt index 9ee2d33..f47de2d 100644 --- a/bar/CMakeLists.txt +++ b/bar/CMakeLists.txt @@ -64,3 +64,5 @@ target_link_libraries(bar $<$:bar-wayland> ${CMAKE_THREAD_LIBS_INIT} ) + +install(FILES bar.h DESTINATION include/f00bar/bar)