summaryrefslogtreecommitdiffstats
path: root/kstars
diff options
context:
space:
mode:
authorOBATA Akio <obache@wizdas.com>2020-05-06 18:54:50 +0900
committerSlávek Banko <slavek.banko@axis.cz>2020-05-06 12:49:54 +0200
commitfd8b96c3a9c1c3e9c356e13405c6e4fa62458026 (patch)
tree67ffbfbd2ccfba9f097dc354aa8304f8e2128a56 /kstars
parent30933eadc2cd8a49ce0a0235e6c26ba2df09af8c (diff)
downloadtdeedu-fd8b96c3a9c1c3e9c356e13405c6e4fa62458026.tar.gz
tdeedu-fd8b96c3a9c1c3e9c356e13405c6e4fa62458026.zip
Fix to link with LIBUSB support
Signed-off-by: OBATA Akio <obache@wizdas.com> (cherry picked from commit 41926cc10a42fb24855047ff0cca70cbb2e4f4f9)
Diffstat (limited to 'kstars')
-rw-r--r--kstars/kstars/indi/CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
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}
)