Set up build system
This commit is contained in:
commit
8fac573efc
3 changed files with 13 additions and 0 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
*~
|
12
CMakeLists.txt
Normal file
12
CMakeLists.txt
Normal file
|
@ -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})
|
0
ulock.c
Normal file
0
ulock.c
Normal file
Reference in a new issue