dev/c/gtk-hello/CMakeLists.txt

16 lines
423 B
CMake
Raw Normal View History

2012-05-28 12:34:29 +04:00
project (gtk_hello)
2012-05-28 11:35:14 +04:00
cmake_minimum_required (VERSION 2.6)
2012-05-28 12:22:50 +04:00
# include (FindGTK2) # doesn't work on WIN32 while
find_package (PkgConfig REQUIRED)
pkg_check_modules (GTK2 REQUIRED gtk+-2.0)
2012-05-28 11:35:14 +04:00
2012-05-28 12:22:50 +04:00
include_directories (${GTK2_INCLUDE_DIRS})
link_directories (${GTK2_LIBRARY_DIRS})
add_definitions (${GTK2_CFLAGS_OTHER})
2012-05-28 11:35:14 +04:00
# add the executable
2012-05-28 12:34:29 +04:00
add_executable (gtk_hello gtk_hello.c)
target_link_libraries (gtk_hello ${GTK2_LIBRARIES})