dev/c/gtkmm_hello/CMakeLists.txt

16 lines
431 B
CMake
Raw Normal View History

2012-05-28 11:35:14 +04:00
project (gtkmm_Hello)
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
add_executable (gtkmm_Hello gtkmm_Hello.c)
target_link_libraries (gtkmm_Hello ${GTK2_LIBRARIES})