From 41926cc10a42fb24855047ff0cca70cbb2e4f4f9 Mon Sep 17 00:00:00 2001 From: OBATA Akio Date: Wed, 6 May 2020 18:54:50 +0900 Subject: [PATCH] Fix to link with LIBUSB support Signed-off-by: OBATA Akio --- kstars/kstars/indi/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/kstars/kstars/indi/CMakeLists.txt b/kstars/kstars/indi/CMakeLists.txt index 6b29ec38..c2a578f9 100644 --- a/kstars/kstars/indi/CMakeLists.txt +++ b/kstars/kstars/indi/CMakeLists.txt @@ -280,6 +280,10 @@ set_property( TOP_DATADIR="${DATA_INSTALL_DIR}/kstars" ) +if (WITH_LIBUSB) +set ( LIBAPOGEE_USB "libapogee_USB-static" ) +endif (WITH_LIBUSB) + tde_add_executable( apogee_ppi SOURCES @@ -290,12 +294,14 @@ tde_add_executable( apogee_ppi indicom-static lilxml-static libapogee_PPI-static + ${LIBAPOGEE_USB} ${ZLIB_LIBRARIES} DEPENDENCIES indicom-static lilxml-static libapogee_PPI-static + ${LIBAPOGEE_USB} DESTINATION ${BIN_INSTALL_DIR} )