diff options
author | Bardur Arantsson <bardur@scientician.net> | 2010-05-04 20:18:35 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2010-05-04 20:18:35 +0200 |
commit | 25847ccde0bcca3e2dcbf5e80cc05ea2f1f76614 (patch) | |
tree | 3eb399108c61f4d20af987a13c9f324c9fd02dac /CMakeLists.txt | |
parent | 09199895acfc58c1fe04757173749fb052a2402b (diff) |
Add support for building the GTK2 interface with the CMake build system.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 7b8b149b..547e50d1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -38,6 +38,17 @@ IF(X11_FOUND) 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) # FIND_PACKAGE(SDL) |