From 4dfd962e661ac58a566b41e7e0decd830afc9f58 Mon Sep 17 00:00:00 2001 From: Ivan Yarcev Date: Mon, 18 Dec 2023 11:58:44 +0600 Subject: [PATCH] vte and webkit are optional --- source/CMakeLists.txt | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt index 624f5f4..1b61aea 100644 --- a/source/CMakeLists.txt +++ b/source/CMakeLists.txt @@ -38,11 +38,21 @@ add_library(${PROJECT_NAME} SHARED set(LIBRARIES ${GTK_LIBRARIES} -${WEBKIT_LIBRARIES} -${VTE291_LIBRARIES} ublsettings pthread) +if (VTE291) +list(APPEND LIBRARIES ${VTE291_LIBRARIES}) +else() +add_definitions(-DVTE_DISABLE) +endif() + +if (WEBKIT_LIBRARIES_FOUND) +list(APPEND LIBRARIES ${WEBKIT_LIBRARIES}) +else() +add_definitions(-DWEBKIT_DISABLE) +endif() + message(${CMAKE_INSTALL_LIBDIR}) target_include_directories(${PROJECT_NAME} PUBLIC ${PROJECT_BINARY_DIR})