Convert from Xlib xcb
This will make it easier to convert this project to Go/xgb later, even though the SYNC extension isn't currently supported there. So far unresolved: error handling.
This commit is contained in:
@@ -28,7 +28,7 @@ endif (OPTION_NOINSTALL)
|
||||
set (CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
|
||||
find_package (Vala 0.12 REQUIRED)
|
||||
find_package (PkgConfig REQUIRED)
|
||||
pkg_check_modules (dependencies REQUIRED gtk+-3.0 sqlite3 x11 xext xextproto)
|
||||
pkg_check_modules (dependencies REQUIRED gtk+-3.0 sqlite3 xcb xcb-sync)
|
||||
|
||||
# Precompile Vala sources
|
||||
include (ValaPrecompile)
|
||||
@@ -57,7 +57,8 @@ set (project_SOURCES ${project_VALA_SOURCES} ${project_VALA_C} ${symbols_path})
|
||||
# Build the executable and install it
|
||||
include_directories (${dependencies_INCLUDE_DIRS})
|
||||
link_directories (${dependencies_LIBRARY_DIRS})
|
||||
add_executable (${PROJECT_NAME} ${PROJECT_NAME}.c ${project_SOURCES})
|
||||
add_executable (${PROJECT_NAME}
|
||||
${PROJECT_NAME}.c compound-text.c ${project_SOURCES})
|
||||
target_link_libraries (${PROJECT_NAME} ${dependencies_LIBRARIES})
|
||||
|
||||
install (TARGETS ${PROJECT_NAME} DESTINATION bin)
|
||||
|
||||
Reference in New Issue
Block a user