vte and webkit are optional

pull/3/head
parent aed5a39d39
commit 4dfd962e66

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

Loading…
Cancel
Save