diff options
author | Jean-Louis Dupond <jean-louis@dupond.be> | 2012-10-03 13:04:51 +0400 |
---|---|---|
committer | Jean-Louis Dupond <jean-louis@dupond.be> | 2012-10-03 13:04:51 +0400 |
commit | f3904d010b1fbcd6ca9e443b01ec249cabbfae19 (patch) | |
tree | 32c186401f74e5d29e4486400fd97f11cf16a419 /CMakeLists.txt | |
parent | 62c35fe62bff83f61486d9eed953844943d2d14a (diff) |
Detect GTK before other packages
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index a82202d1d..195128fb6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -82,23 +82,24 @@ set(REMMINA_DATADIR "${CMAKE_INSTALL_PREFIX}/share") set(REMMINA_LOCALEDIR "${CMAKE_INSTALL_PREFIX}/share/locale") set(REMMINA_PLUGINDIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/remmina/plugins") +find_required_package(GTK) find_suggested_package(PTHREAD) +find_suggested_package(GCRYPT) +find_suggested_package(AVAHI) + if(PTHREAD_FOUND) add_definitions(-DHAVE_PTHREAD) endif() -find_suggested_package(GCRYPT) if(GCRYPT_FOUND) add_definitions(-DHAVE_LIBGCRYPT) endif() -find_suggested_package(AVAHI) if(AVAHI_FOUND) add_definitions(-DHAVE_LIBAVAHI_UI) add_definitions(-DHAVE_LIBAVAHI_CLIENT) endif() -find_required_package(GTK) if(GTK_FOUND) add_subdirectory(remmina) add_subdirectory(remmina-plugins) |