|
|
|
|
@ -1,17 +1,16 @@
|
|
|
|
|
cmake_minimum_required(VERSION 3.7)
|
|
|
|
|
cmake_minimum_required(VERSION 3.23)
|
|
|
|
|
project(ubl-settings-manager)
|
|
|
|
|
|
|
|
|
|
find_package(PkgConfig REQUIRED)
|
|
|
|
|
|
|
|
|
|
pkg_check_modules(GTK REQUIRED gtk+-3.0)
|
|
|
|
|
include_directories(${GTK_INCLUDE_DIRS})
|
|
|
|
|
link_directories(${GTK_LIBRARY_DIRS})
|
|
|
|
|
add_definitions(${GTK_CFLAGS_OTHER})
|
|
|
|
|
|
|
|
|
|
option(WEBKIT_FOUND "No" OFF)
|
|
|
|
|
pkg_check_modules(GTK3 REQUIRED gtk+-3.0)
|
|
|
|
|
include_directories(${GTK3_INCLUDE_DIRS})
|
|
|
|
|
link_directories(${GTK3_LIBRARY_DIRS})
|
|
|
|
|
add_definitions(${GTK3_CFLAGS_OTHER})
|
|
|
|
|
|
|
|
|
|
find_library(WEBKIT_LIBRARIES_FOUND webkit2gtk-4.0 webkit2gtk-web-extension-4.0)
|
|
|
|
|
|
|
|
|
|
option(WEBKIT_FOUND "No" OFF)
|
|
|
|
|
if(WEBKIT_LIBRARIES_FOUND)
|
|
|
|
|
option(WEBKIT_FOUND "Yes" ON)
|
|
|
|
|
PKG_CHECK_MODULES(WEBKIT REQUIRED webkit2gtk-4.0 webkit2gtk-web-extension-4.0)
|
|
|
|
|
@ -35,13 +34,11 @@ set(SOURCE_FILES
|
|
|
|
|
ubl-settings-manager-cm.h)
|
|
|
|
|
|
|
|
|
|
set(LIBRARIES
|
|
|
|
|
${GTK_LIBRARIES}
|
|
|
|
|
${GTK3_LIBRARIES}
|
|
|
|
|
${WEBKIT_LIBRARIES}
|
|
|
|
|
pthread)
|
|
|
|
|
|
|
|
|
|
add_executable(ubl-settings-manager ${SOURCE_FILES})
|
|
|
|
|
target_link_libraries(ubl-settings-manager PUBLIC ${WEBKIT_LIBRARIES} ${LIBRARIES})
|
|
|
|
|
target_include_directories(ubl-settings-manager PUBLIC
|
|
|
|
|
"${PROJECT_BINARY_DIR}"
|
|
|
|
|
${WEBKIT_INCLUDE_DIRS}
|
|
|
|
|
)
|
|
|
|
|
install(TARGETS ubl-settings-manager DESTINATION bin)
|
|
|
|
|
add_executable(${PROJECT_NAME} ${SOURCE_FILES})
|
|
|
|
|
target_link_libraries(${PROJECT_NAME} PUBLIC ${LIBRARIES})
|
|
|
|
|
target_include_directories(${PROJECT_NAME} PUBLIC ${PROJECT_BINARY_DIR})
|
|
|
|
|
install(TARGETS ${PROJECT_NAME} DESTINATION bin)
|
|
|
|
|
|