diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | CMakeLists.txt | 12 | ||||
-rw-r--r-- | ulock.c | 0 |
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}) |