From d06beedcaa5225f9a921d5fdff5d9182d9b38e08 Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch Date: Sat, 12 Oct 2024 14:20:31 +0200 Subject: CMakeLists.txt: install optional targets --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0aa0760..c1cfa73 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -60,12 +60,14 @@ target_link_libraries (wmstatus add_threads (wmstatus) if (WITH_USB) + list (APPEND targets elksmart-comm) add_executable (elksmart-comm elksmart-comm.c) target_include_directories (elksmart-comm PUBLIC ${libusb_INCLUDE_DIRS}) target_link_directories (elksmart-comm PUBLIC ${libusb_LIBRARY_DIRS}) target_link_libraries (elksmart-comm ${libusb_LIBRARIES}) endif () if (WITH_GDM) + list (APPEND targets gdm-switch-user) add_executable (gdm-switch-user gdm-switch-user.c) target_include_directories (gdm-switch-user PUBLIC ${gdm_INCLUDE_DIRS}) target_link_directories (gdm-switch-user PUBLIC ${gdm_LIBRARY_DIRS}) -- cgit v1.2.3-70-g09d2