summaryrefslogtreecommitdiffstats
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2012-03-01 12:32:10 +0100
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2012-03-01 12:32:10 +0100
commitb29c78f818ac92f42621c69c29736fe5c8e32c6f (patch)
treefcafd885b20775ee329ad1f02cce8cce9c557cf6 /src/CMakeLists.txt
parent13b9b1492cb8aadef6c2905e48cbde93a7135cc0 (diff)
downloadlibuca-b29c78f818ac92f42621c69c29736fe5c8e32c6f.tar.gz
libuca-b29c78f818ac92f42621c69c29736fe5c8e32c6f.tar.bz2
libuca-b29c78f818ac92f42621c69c29736fe5c8e32c6f.tar.xz
libuca-b29c78f818ac92f42621c69c29736fe5c8e32c6f.zip
Initial prototype of GObject-based libuca
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 3bb668a..7bb66aa 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -121,6 +121,24 @@ set_target_properties(uca PROPERTIES
target_link_libraries(uca ${uca_LIBS})
+
+# >>>> TEMPORARY BUILD TARGET <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
+pkg_check_modules(GLIB2 glib-2.0>=2.24 REQUIRED)
+pkg_check_modules(GOBJECT2 gobject-2.0>=2.24 REQUIRED)
+
+include_directories(
+ ${GLIB2_INCLUDE_DIRS}
+ ${GOBJECT2_INCLUDE_DIRS}
+ ${PCO_INCLUDE_DIRS}
+ ${CMAKE_CURRENT_SOURCE_DIR}/cameras
+ )
+
+add_library(uca-gobject SHARED uca-camera.c cameras/uca-pco-camera.c cameras/uca-mock-camera.c)
+
+target_link_libraries(uca-gobject ${GLIB2_LIBRARIES} ${GOBJECT2_LIBRARIES}
+ ${PCO_LIBRARIES})
+
+
# --- Install target ----------------------------------------------------------
set(LIB_INSTALL_DIR "lib${LIB_SUFFIX}")