summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@gmail.com>2012-06-01 12:00:05 +0200
committerMatthias Vogelgesang <matthias.vogelgesang@gmail.com>2012-06-01 12:00:05 +0200
commit78aec4b3b6ccf80b31138fea9051c2ff7f16b03d (patch)
tree3c0d2c0cd3f341b5f230ecd2c245956412d623f5
parent5d04be2bb442fb9e52bdc1ea490c498cf8667a24 (diff)
downloaduca-78aec4b3b6ccf80b31138fea9051c2ff7f16b03d.tar.gz
uca-78aec4b3b6ccf80b31138fea9051c2ff7f16b03d.tar.bz2
uca-78aec4b3b6ccf80b31138fea9051c2ff7f16b03d.tar.xz
uca-78aec4b3b6ccf80b31138fea9051c2ff7f16b03d.zip
Install camera-specific headers
-rw-r--r--src/CMakeLists.txt20
1 files changed, 14 insertions, 6 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index b0f62be..73d1034 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -5,6 +5,9 @@ set(uca_SRCS
uca-camera.c
)
+set(uca_HDRS
+ uca-camera.h)
+
set(cameras)
# --- Find packages and libraries ---------------------------------------------
@@ -38,7 +41,8 @@ if (PF_FOUND)
option(HAVE_PHOTON_FOCUS "Camera: Photon Focus MV2-D1280-640-CL-8" ON)
if (HAVE_PHOTON_FOCUS AND CLSERME4_FOUND AND FGLIB5_FOUND)
- set(uca_SRCS ${uca_SRCS} cameras/uca-pf-camera.c)
+ list(APPEND uca_SRCS cameras/uca-pf-camera.c)
+ list(APPEND uca_HDRS cameras/uca-pf-camera.h)
list(APPEND cameras "Pf")
set(uca_LIBS ${uca_LIBS}
@@ -56,7 +60,8 @@ if (PCO_FOUND AND CLSERME4_FOUND AND FGLIB5_FOUND)
option(HAVE_PCO_CL "Camera: CameraLink-based pco" ON)
if (HAVE_PCO_CL)
- set(uca_SRCS ${uca_SRCS} cameras/uca-pco-camera.c)
+ list(APPEND uca_SRCS cameras/uca-pco-camera.c)
+ list(APPEND uca_HDRS cameras/uca-pco-camera.h)
list(APPEND cameras "Pco")
set(uca_LIBS ${uca_LIBS}
@@ -75,16 +80,19 @@ if (IPE_FOUND)
option(HAVE_UFO_CAMERA "Camera: Custom based on Xilinx FPGA" ON)
if (HAVE_UFO_CAMERA)
- set(uca_SRCS ${uca_SRCS} cameras/uca-ufo-camera.c)
- set(uca_LIBS ${uca_LIBS} ${IPE_LIBRARIES})
+ list(APPEND uca_SRCS cameras/uca-ufo-camera.c)
+ list(APPEND uca_HDRS cameras/uca-ufo-camera.h)
list(APPEND cameras "Ufo")
+ set(uca_LIBS ${uca_LIBS} ${IPE_LIBRARIES})
+
include_directories(${IPE_INCLUDE_DIRS})
endif()
endif()
if (HAVE_MOCK_CAMERA)
- set(uca_SRCS ${uca_SRCS} cameras/uca-mock-camera.c)
+ list(APPEND uca_SRCS cameras/uca-mock-camera.c)
+ list(APPEND uca_HDRS cameras/uca-mock-camera.h)
list(APPEND cameras "Mock")
endif()
@@ -206,7 +214,7 @@ set(LIB_INSTALL_DIR "lib${LIB_SUFFIX}")
install(TARGETS uca
LIBRARY DESTINATION ${LIB_INSTALL_DIR})
-install(FILES uca-camera.h
+install(FILES ${uca_HDRS}
DESTINATION include/uca)
# --- install pkg-config file