diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 97ca9fd..8c5246c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -46,10 +46,14 @@ tde_setup_paths( ) ##### optional stuff ############################ -option( WITH_BACKEND_LIBBFD "Build with libbfd backend" "ON" ) -option( WITH_BACKEND_LIBELF "Build with libelf backend" "OFF" ) -option( WITH_BACKEND_READONLY "Build with read-only backend" "OFF" ) +option( WITH_BACKEND_LIBBFD "Build with libbfd backend" ON ) +option( WITH_BACKEND_LIBELF "Build with libelf backend" OFF ) +option( WITH_BACKEND_READONLY "Build with read-only backend" OFF ) +option( WITH_GTK "Build support for GTK" ON ) +# NOTE: WITH_GTK build gtk bindings to ease libr in gtk applications. +# It uses weak linkage, so gtk will be required during build +# only and not strictly necessary during runtime. #### configure checks ########################### @@ -95,10 +99,12 @@ if( NOT ZLIB_FOUND ) tde_message_fatal( "zlib are required, but not found on your system" ) endif( NOT ZLIB_FOUND ) -pkg_search_module( GTK gtk+-2.0 ) -if( NOT GTK_FOUND ) - tde_message_fatal( "gtk2 is required but was not found on your system" ) -endif( ) +if( WITH_GTK ) + pkg_search_module( GTK gtk+-2.0 ) + if( NOT GTK_FOUND ) + tde_message_fatal( "gtk2 is required but was not found on your system" ) + endif( ) +endif( WITH_GTK ) set( DL_LIBRARIES dl ) check_library_exists( ${DL_LIBRARIES} dlopen /lib HAVE_LIBDL ) |