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})