From 8feae589dce8df76ef4d74a9dbf7728fe9d0874e Mon Sep 17 00:00:00 2001 From: Brenden Matthews Date: Tue, 8 Jan 2019 19:47:37 -0500 Subject: [PATCH] Install libconky_core, too, if wanted. If someone decides to install the testing build, it doesn't include libconky_core. This fixes #756. --- src/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index dfc4b7e5..d0ffccb6 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -288,6 +288,10 @@ if(BUILD_TESTS) target_link_libraries(conky_core ${conky_libs}) add_executable(conky main.cc) target_link_libraries(conky conky_core ${conky_libs}) + install(TARGETS conky_core + RUNTIME DESTINATION bin + LIBRARY DESTINATION lib + ARCHIVE DESTINATION lib) else() add_executable(conky main.cc ${conky_sources} ${optional_sources}) target_link_libraries(conky ${conky_libs})