CMakeLists.txt: install optional targets
Alpine 3.20 Success Details
OpenBSD 7.5 Success Details

This commit is contained in:
Přemysl Eric Janouch 2024-10-12 14:20:31 +02:00
parent dc3f0d6d05
commit d06beedcaa
Signed by: p
GPG Key ID: A0420B94F92B9493
1 changed files with 2 additions and 0 deletions

View File

@ -60,12 +60,14 @@ target_link_libraries (wmstatus
add_threads (wmstatus) add_threads (wmstatus)
if (WITH_USB) if (WITH_USB)
list (APPEND targets elksmart-comm)
add_executable (elksmart-comm elksmart-comm.c) add_executable (elksmart-comm elksmart-comm.c)
target_include_directories (elksmart-comm PUBLIC ${libusb_INCLUDE_DIRS}) target_include_directories (elksmart-comm PUBLIC ${libusb_INCLUDE_DIRS})
target_link_directories (elksmart-comm PUBLIC ${libusb_LIBRARY_DIRS}) target_link_directories (elksmart-comm PUBLIC ${libusb_LIBRARY_DIRS})
target_link_libraries (elksmart-comm ${libusb_LIBRARIES}) target_link_libraries (elksmart-comm ${libusb_LIBRARIES})
endif () endif ()
if (WITH_GDM) if (WITH_GDM)
list (APPEND targets gdm-switch-user)
add_executable (gdm-switch-user gdm-switch-user.c) add_executable (gdm-switch-user gdm-switch-user.c)
target_include_directories (gdm-switch-user PUBLIC ${gdm_INCLUDE_DIRS}) target_include_directories (gdm-switch-user PUBLIC ${gdm_INCLUDE_DIRS})
target_link_directories (gdm-switch-user PUBLIC ${gdm_LIBRARY_DIRS}) target_link_directories (gdm-switch-user PUBLIC ${gdm_LIBRARY_DIRS})