summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--CMakeLists.txt12
-rw-r--r--ulock.c0
3 files changed, 13 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..b25c15b
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+*~
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 0000000..14fab01
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,12 @@
+project(ULOCK C)
+cmake_minimum_required(VERSION 2.8)
+
+find_package(PkgConfig REQUIRED)
+pkg_check_modules(GTK3 REQUIRED gtk+-x11-3.0)
+
+include_directories(${GTK3_INCLUDE_DIRS})
+
+add_executable(ulock ulock.c)
+set_property(TARGET ulock PROPERTY COMPILE_FLAGS "-Wall ${GTK3_CFLAGS_OTHER}")
+set_property(TARGET ulock PROPERTY LINK_FLAGS "${GTK3_LDFLAGS_OTHER}")
+target_link_libraries(ulock ${GTK3_LIBRARIES})
diff --git a/ulock.c b/ulock.c
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/ulock.c