diff options
author | Alexander Golubev <fatzer2@gmail.com> | 2024-02-03 11:47:04 +0300 |
---|---|---|
committer | Alexander Golubev <fatzer2@gmail.com> | 2024-02-06 04:09:42 +0300 |
commit | c3ef8bdc0d7a325c8ece072a2c38d1dbc290adb5 (patch) | |
tree | bdaabd74241e05623b020b0d3aec1197139eb787 /src | |
parent | 57b8158b9acd3e5f24fde99b6f86a2d8b26174b6 (diff) | |
download | libr-c3ef8bdc0d7a325c8ece072a2c38d1dbc290adb5.tar.gz libr-c3ef8bdc0d7a325c8ece072a2c38d1dbc290adb5.zip |
Make dependency upon gtk optional
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/CMakeLists.txt | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 9026ea2..272d74c 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -34,10 +34,13 @@ set( ${target}_SRCS onecanvas.c libr-icons.c libr-i18n.c - libr-gtk.c libr.c ) +if( WITH_GTK ) + list( APPEND ${target}_SRCS libr-gtk.c ) +endif( WITH_GTK ) + tde_add_library( ${target} SHARED VERSION 1.0.0 @@ -61,10 +64,13 @@ set( ${target}_INCLUDES gettext.h libr-icons.h libr-i18n.h - libr-gtk.h libr.h ) +if( WITH_GTK ) + list( APPEND ${target}_INCLUDES libr-gtk.h ) +endif( WITH_GTK ) + install( FILES ${${target}_INCLUDES} DESTINATION ${INCLUDE_INSTALL_DIR}/libr |