summaryrefslogtreecommitdiffstats
path: root/kstars/kstars/indi
diff options
context:
space:
mode:
Diffstat (limited to 'kstars/kstars/indi')
-rw-r--r--kstars/kstars/indi/CMakeLists.txt391
-rw-r--r--kstars/kstars/indi/apogee/CMakeLists.txt92
-rw-r--r--kstars/kstars/indi/fli/CMakeLists.txt70
-rw-r--r--kstars/kstars/indi/webcam/CMakeLists.txt31
4 files changed, 584 insertions, 0 deletions
diff --git a/kstars/kstars/indi/CMakeLists.txt b/kstars/kstars/indi/CMakeLists.txt
new file mode 100644
index 00000000..34c08881
--- /dev/null
+++ b/kstars/kstars/indi/CMakeLists.txt
@@ -0,0 +1,391 @@
+add_subdirectory( fli )
+add_subdirectory( apogee )
+tde_conditional_add_subdirectory( WITH_V4L webcam )
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${ZLIB_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${TDE_LIB_DIR}
+ ${CMAKE_BINARY_DIR}/kstars/kstars/indi/fli
+)
+
+set( INDIDRIVER_BASE_SRC base64.c indidrivermain.c eventloop.c )
+
+
+##### lilxml (static )
+
+tde_add_library( lilxml STATIC_PIC
+
+ SOURCES
+ lilxml.c
+)
+
+
+##### indicom (static )
+
+tde_add_library( indicom STATIC_PIC
+
+ SOURCES
+ base64.c
+ indicom.c
+ fitsrw.c
+)
+
+
+##### indiserver (executable)
+
+tde_add_executable( indiserver
+
+ SOURCES
+ indiserver.c
+ fq.c
+ LINK
+ tdecore-shared
+ lilxml-static
+ ${CMAKE_THREAD_LIBS_INIT}
+
+ DEPENDENCIES
+ lilxml-static
+
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### lx200basic (executable)
+
+tde_add_executable( lx200basic
+
+ SOURCES
+ ${INDIDRIVER_BASE_SRC}
+ lx200driver.c
+ lx200basic.cpp
+ LINK
+ lilxml-static
+ indicom-static
+ tdecore-shared
+
+ DEPENDENCIES
+ lilxml-static
+ indicom-static
+
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### lx200generic (executable)
+
+tde_add_executable( lx200generic
+
+ SOURCES
+ ${INDIDRIVER_BASE_SRC}
+ lx200driver.c
+ lx200autostar.cpp
+ lx200_16.cpp
+ lx200gps.cpp
+ lx200generic.cpp
+ lx200classic.cpp
+ LINK
+ tdecore-shared
+ lilxml-static
+ indicom-static
+ ${LIBM}
+
+ DEPENDENCIES
+ lilxml-static
+ indicom-static
+
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+foreach( _lx200 lx200classic lx200autostar lx200_16 lx200gps )
+ tde_install_symlink( lx200generic ${BIN_INSTALL_DIR}/${_lx200} )
+endforeach( )
+
+
+##### celestrongps (executable)
+
+tde_add_executable( celestrongps
+
+ SOURCES
+ ${INDIDRIVER_BASE_SRC}
+ celestronprotocol.c
+ celestrongps.cpp
+ LINK
+ tdecore-shared
+ lilxml-static
+ indicom-static
+ ${LIBM}
+
+ DEPENDENCIES
+ lilxml-static
+ indicom-static
+
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### apmount (executable)
+
+tde_add_executable( apmount
+
+ SOURCES
+ ${INDIDRIVER_BASE_SRC}
+ lx200driver.c
+ apmount.cpp
+ LINK
+ tdecore-shared
+ lilxml-static
+ indicom-static
+
+ DEPENDENCIES
+ lilxml-static
+ indicom-static
+
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### fliccd (executable)
+
+tde_add_executable( fliccd
+
+ SOURCES
+ ${INDIDRIVER_BASE_SRC}
+ fli_ccd.c
+
+ LINK
+ tdecore-shared
+ fli_common-static
+ ${LIB_FLI}
+ indicom-static
+ lilxml-static
+ ${ZLIB_LIBRARIES}
+ ${LIBM}
+
+ DEPENDENCIES
+ fli_common-static
+ ${LIB_FLI}
+ indicom-static
+ lilxml-static
+
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### fliwheel (executable)
+
+tde_add_executable( fliwheel
+
+ SOURCES
+ ${INDIDRIVER_BASE_SRC}
+ fli_wheel.c
+
+ LINK
+ tdecore-shared
+ fli_common-static
+ ${LIB_FLI}
+ indicom-static
+ lilxml-static
+ ${LIBM}
+
+ DEPENDENCIES
+ fli_common-static
+ ${LIB_FLI}
+ indicom-static
+ lilxml-static
+
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### temma (executable)
+
+tde_add_executable( temma
+
+ SOURCES
+ ${INDIDRIVER_BASE_SRC}
+ temmadriver.c
+ LINK
+ tdecore-shared
+ indicom-static
+ lilxml-static
+ ${LIBM}
+
+ DEPENDENCIES
+ indicom-static
+ lilxml-static
+
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### skycommander (executable)
+
+tde_add_executable( skycommander
+
+ SOURCES
+ ${INDIDRIVER_BASE_SRC}
+ lx200driver.c
+ skycommander.c
+ LINK
+ tdecore-shared
+ indicom-static
+ lilxml-static
+ ${LIBM}
+
+ DEPENDENCIES
+ indicom-static
+ lilxml-static
+
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### sbigccd (executable)
+
+tde_add_executable( sbigccd
+
+ SOURCES
+ ${INDIDRIVER_BASE_SRC}
+ sbigccd.cpp
+
+ LINK
+ tdecore-shared
+ indicom-static
+ lilxml-static
+ ${ZLIB_LIBRARIES}
+
+ DEPENDENCIES
+ indicom-static
+ lilxml-static
+
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### With Video4Linux support
+
+if( WITH_V4L )
+
+
+####### apogee_ppi (executable)
+
+set_property(
+ SOURCE apogee_ppi.cpp
+ APPEND PROPERTY COMPILE_DEFINITIONS
+ TOP_DATADIR="${DATA_INSTALL_DIR}/kstars"
+)
+
+tde_add_executable( apogee_ppi
+
+ SOURCES
+ ${INDIDRIVER_BASE_SRC}
+ apogee_ppi.cpp
+ LINK
+ tdecore-shared
+ indicom-static
+ lilxml-static
+ libapogee_PPI-static
+ ${ZLIB_LIBRARIES}
+
+ DEPENDENCIES
+ indicom-static
+ lilxml-static
+ libapogee_PPI-static
+
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+####### v4ldriver (executable)
+
+tde_add_executable( v4ldriver
+
+ SOURCES
+ ${INDIDRIVER_BASE_SRC}
+ v4ldriver.cpp
+ indi_v4l.cpp
+ LINK
+ tdecore-shared
+ indicom-static
+ lilxml-static
+ libwebcam_v4l-static
+ ${ZLIB_LIBRARIES}
+ ${LIBM}
+
+ DEPENDENCIES
+ indicom-static
+ lilxml-static
+ libwebcam_v4l-static
+
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+####### v4lphilips (executable)
+
+tde_add_executable( v4lphilips
+
+ SOURCES
+ ${INDIDRIVER_BASE_SRC}
+ v4ldriver.cpp
+ v4lphilips.cpp
+ indi_philips.cpp
+ LINK
+ tdecore-shared
+ indicom-static
+ lilxml-static
+ libwebcam_v4l-static
+ ${ZLIB_LIBRARIES}
+ ${LIBM}
+
+ DEPENDENCIES
+ indicom-static
+ lilxml-static
+ libwebcam_v4l-static
+
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### meade_lpi (executable)
+
+tde_add_executable( meade_lpi
+
+ SOURCES
+ ${INDIDRIVER_BASE_SRC}
+ v4ldriver.cpp
+ indi_lpi.cpp
+ LINK
+ tdecore-shared
+ indicom-static
+ lilxml-static
+ libwebcam_v4l-static
+ ${ZLIB_LIBRARIES}
+
+ DEPENDENCIES
+ indicom-static
+ lilxml-static
+ libwebcam_v4l-static
+
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+endif()
+
+
+##### other data
+
+install(
+ FILES drivers.xml apogee_caminfo.xml
+ DESTINATION ${DATA_INSTALL_DIR}/kstars
+)
diff --git a/kstars/kstars/indi/apogee/CMakeLists.txt b/kstars/kstars/indi/apogee/CMakeLists.txt
new file mode 100644
index 00000000..5986af5f
--- /dev/null
+++ b/kstars/kstars/indi/apogee/CMakeLists.txt
@@ -0,0 +1,92 @@
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${LIBUSB_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${TDE_LIB_DIR}
+)
+
+
+##### libapogee_ISA (static)
+
+tde_add_library( libapogee_ISA STATIC_PIC
+
+ SOURCES
+ CameraIO_Linux.cpp
+ CameraIO_LinuxISA.cpp
+)
+
+
+##### libapogee_PCI (static)
+
+tde_add_library( libapogee_PCI STATIC_PIC
+
+ SOURCES
+ CameraIO_Linux.cpp
+ CameraIO_LinuxPCI.cpp
+)
+
+
+##### libapogee_PPI (static)
+
+tde_add_library( libapogee_PPI STATIC_PIC
+
+ SOURCES
+ CameraIO_Linux.cpp
+ CameraIO_LinuxPPI.cpp
+)
+
+
+##### libapogee_USB ( static )
+
+if( WITH_LIBUSB )
+
+tde_add_library( libapogee_USB STATIC_PIC
+
+ SOURCES
+ ApnCamData.cpp
+ ApnCamData_CCD3011HS.cpp
+ ApnCamData_CCD3011LS.cpp
+ ApnCamData_CCD4240HS.cpp
+ ApnCamData_CCD4240LS.cpp
+ ApnCamData_CCD4710HS.cpp
+ ApnCamData_CCD4710LS.cpp
+ ApnCamData_CCD4710LS2.cpp
+ ApnCamData_CCD4710LS3.cpp
+ ApnCamData_CCD4710LS4.cpp
+ ApnCamData_CCD4710LS5.cpp
+ ApnCamData_CCD4720HS.cpp
+ ApnCamData_CCD4720LS.cpp
+ ApnCamData_CCD5520HS.cpp
+ ApnCamData_CCD5520LS.cpp
+ ApnCamData_CCD5710HS.cpp
+ ApnCamData_CCD5710LS.cpp
+ ApnCamData_CCD7700HS.cpp
+ ApnCamData_CCD7700LS.cpp
+ ApnCamData_KAF0261E.cpp
+ ApnCamData_KAF0401E.cpp
+ ApnCamData_KAF1001E.cpp
+ ApnCamData_KAF1301E.cpp
+ ApnCamData_KAF1401E.cpp
+ ApnCamData_KAF3200E.cpp
+ ApnCamData_KAF4202.cpp
+ ApnCamData_KAF1602E.cpp
+ ApnCamData_KAF16801E.cpp
+ ApnCamData_KAF6303E.cpp
+ ApnCamData_TH7899.cpp
+ ApnCamTable.cpp
+ ApnCamera.cpp
+ ApnCamera_USB.cpp
+ ApnCamera_Linux.cpp
+ ApogeeUsbLinux.cpp
+ LINK
+ ${LIBUSB_LIBRARIES}
+)
+
+endif( WITH_LIBUSB )
diff --git a/kstars/kstars/indi/fli/CMakeLists.txt b/kstars/kstars/indi/fli/CMakeLists.txt
new file mode 100644
index 00000000..235137a9
--- /dev/null
+++ b/kstars/kstars/indi/fli/CMakeLists.txt
@@ -0,0 +1,70 @@
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${TDE_LIB_DIR}
+)
+
+
+##### fli_common (static)
+
+tde_add_library( fli_common STATIC_PIC
+
+ SOURCES
+ libfli.c
+ libfli-camera.c
+ libfli-camera-parport.c
+ libfli-camera-usb.c
+ libfli-filter-focuser.c
+ libfli-mem.c
+ libfli-serial.c
+ libfli-sys.c
+ libfli-usb.c
+ libfli-debug.c
+)
+
+
+##### $(libfli_linux) (static)
+
+if( OS_Linux )
+
+tde_add_library( fli_linux STATIC_PIC
+
+ SOURCES
+ libfli-parport.c
+ libfli-usb-sys-linux.c
+)
+
+endif()
+
+
+##### fli_bsd (static)
+
+if( OS_BSD )
+
+tde_add_library( fli_bsd STATIC_PIC
+
+ SOURCES
+ libfli-usb-sys-bsd.c
+)
+
+endif()
+
+
+##### fli_null (static)
+
+if( OS_UNKNOWN )
+
+tde_add_library( fli_null STATIC_PIC
+
+ SOURCES
+ libfli-usb-sys-null.c
+)
+
+endif()
diff --git a/kstars/kstars/indi/webcam/CMakeLists.txt b/kstars/kstars/indi/webcam/CMakeLists.txt
new file mode 100644
index 00000000..05283d18
--- /dev/null
+++ b/kstars/kstars/indi/webcam/CMakeLists.txt
@@ -0,0 +1,31 @@
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${TDE_LIB_DIR}
+)
+
+
+##### libwebcam_linux (static)
+
+if( HAVE_LINUX_VIDEODEV2_H )
+ set( V4L_SOURCES v4l2_base.cpp )
+elseif( HAVE_LINUX_VIDEODEV_H )
+ set( V4L_SOURCES v4l1_base.cpp v4l1_pwc.cpp )
+endif( )
+
+tde_add_library( libwebcam_v4l STATIC_PIC
+
+ SOURCES
+ ${V4L_SOURCES}
+ PPort.cpp
+ port.cpp
+ ccvt_c2.c
+ ccvt_misc.c
+)