summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@gmail.com>2012-04-20 11:40:07 +0200
committerMatthias Vogelgesang <matthias.vogelgesang@gmail.com>2012-04-20 11:40:07 +0200
commit19bb173b6d3e36b8d46235830a304c752451ae7e (patch)
tree49cafedb2f44322e8052cb1b3022bb2096dda4e3 /test
parentf159f5f6ebc891ca4ecdfa600f1bc427fece5f07 (diff)
downloadlibuca-19bb173b6d3e36b8d46235830a304c752451ae7e.tar.gz
libuca-19bb173b6d3e36b8d46235830a304c752451ae7e.tar.bz2
libuca-19bb173b6d3e36b8d46235830a304c752451ae7e.tar.xz
libuca-19bb173b6d3e36b8d46235830a304c752451ae7e.zip
Drop -gobject suffix
Diffstat (limited to 'test')
-rw-r--r--test/CMakeLists.txt44
1 files changed, 16 insertions, 28 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 7380179..8de0058 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -17,51 +17,39 @@ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/run.py ${CMAKE_CURRENT_BINARY_DIR})
# --- Build targets -----------------------------------------------------------
#add_executable(enum enum.c)
-add_executable(grab grab.c)
#add_executable(grab-async grab-async.c)
#add_executable(benchmark benchmark.c)
#target_link_libraries(enum uca)
-target_link_libraries(grab uca-gobject ${GLIB2_LIBRARIES} ${GOBJECT2_LIBRARIES})
#target_link_libraries(grab-async uca)
#target_link_libraries(benchmark uca)
-if (GTK2_FOUND)
- include_directories(${GTK2_INCLUDE_DIRS})
- add_executable(control control.c)
- target_link_libraries(control
- uca-gobject
- ${GTK2_LIBRARIES}
- ${GTHREAD2_LIBRARIES}
- )
-endif()
-
-
include_directories(
${GLIB2_INCLUDE_DIRS}
${GOBJECT2_INCLUDE_DIRS}
${CMAKE_CURRENT_SOURCE_DIR}/../src/cameras
)
+add_executable(grab grab.c)
+target_link_libraries(grab uca ${GLIB2_LIBRARIES} ${GOBJECT2_LIBRARIES})
+
+if (GTK2_FOUND)
+ include_directories(${GTK2_INCLUDE_DIRS})
+ add_executable(control control.c)
+ target_link_libraries(control uca
+ ${GTK2_LIBRARIES} ${GTHREAD2_LIBRARIES})
+endif()
+
if (HAVE_MOCK_CAMERA)
add_executable(test-mock test-mock.c)
- target_link_libraries(test-mock
- uca-gobject
- ${GLIB2_LIBRARIES}
- ${GOBJECT2_LIBRARIES}
- )
+ target_link_libraries(test-mock uca
+ ${GLIB2_LIBRARIES} ${GOBJECT2_LIBRARIES})
endif()
add_executable(test-all test-all.c)
-target_link_libraries(test-all
- uca-gobject
- ${GLIB2_LIBRARIES}
- ${GOBJECT2_LIBRARIES}
- )
+target_link_libraries(test-all uca
+ ${GLIB2_LIBRARIES} ${GOBJECT2_LIBRARIES})
add_executable(perf-overhead perf-overhead.c)
-target_link_libraries(perf-overhead
- uca-gobject
- ${GLIB2_LIBRARIES}
- ${GOBJECT2_LIBRARIES}
- )
+target_link_libraries(perf-overhead uca
+ ${GLIB2_LIBRARIES} ${GOBJECT2_LIBRARIES})