summaryrefslogtreecommitdiffstats
path: root/bin/gui/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'bin/gui/CMakeLists.txt')
-rw-r--r--bin/gui/CMakeLists.txt18
1 files changed, 8 insertions, 10 deletions
diff --git a/bin/gui/CMakeLists.txt b/bin/gui/CMakeLists.txt
index c42bf35..bb5a8f4 100644
--- a/bin/gui/CMakeLists.txt
+++ b/bin/gui/CMakeLists.txt
@@ -1,8 +1,6 @@
-cmake_minimum_required(VERSION 2.8)
+cmake_minimum_required(VERSION 2.6)
-add_definitions("--std=c99 -Wall")
-
-# --- Find packages and libraries ---------------------------------------------
+#{{{ Configure
find_package(PkgConfig)
pkg_check_modules(GTK2 gtk+-2.0>=2.22)
@@ -13,12 +11,11 @@ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.in
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/control.glade
${CMAKE_CURRENT_BINARY_DIR})
-
-# --- Build targets -----------------------------------------------------------
-include_directories(${CMAKE_CURRENT_BINARY_DIR})
-
+#}}}
+#{{{ Target
if (GTK2_FOUND)
- include_directories(${GTK2_INCLUDE_DIRS})
+ include_directories(${GTK2_INCLUDE_DIRS}
+ ${CMAKE_CURRENT_BINARY_DIR})
set(BINARY "uca-camera-control")
add_executable(${BINARY}
@@ -31,7 +28,7 @@ if (GTK2_FOUND)
m
uca
ringbuffer
- ${GTK2_LIBRARIES}
+ ${GTK2_LIBRARIES}
${GTHREAD2_LIBRARIES})
install(TARGETS ${BINARY}
@@ -40,3 +37,4 @@ if (GTK2_FOUND)
install(FILES control.glade
DESTINATION share/libuca)
endif()
+#}}}