From 25847ccde0bcca3e2dcbf5e80cc05ea2f1f76614 Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Tue, 4 May 2010 20:18:35 +0200 Subject: Add support for building the GTK2 interface with the CMake build system. --- CMakeLists.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 7b8b149b..547e50d1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -37,6 +37,17 @@ IF(X11_FOUND) SET(LIBS ${LIBS} ${X11_LIBRARIES}) ENDIF() +# +# GTK2 support (OPTIONAL) +# +FIND_PACKAGE(GTK2) +IF(GTK2_FOUND) + # Add GTK flags/options + ADD_DEFINITIONS(-DUSE_GTK2) + INCLUDE_DIRECTORIES(${GTK2_INCLUDE_DIRS}) + SET(LIBS ${LIBS} ${GTK2_LIBRARIES}) +ENDIF() + # # SDL support (OPTIONAL) # -- cgit v1.2.3