From 46659e2423915df17245396d1aaf56757e346554 Mon Sep 17 00:00:00 2001 From: Mattia Basaglia Date: Wed, 29 Jul 2015 09:06:10 +0200 Subject: [PATCH] Fix plugin compilation --- contrib/CMakeLists.txt | 8 ++++++++ plugins/CMakeLists.txt | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/contrib/CMakeLists.txt b/contrib/CMakeLists.txt index 7c2aa799..e0f606eb 100644 --- a/contrib/CMakeLists.txt +++ b/contrib/CMakeLists.txt @@ -1,3 +1,11 @@ +include_directories("${CMAKE_SOURCE_DIR}/libs") +include_directories("${CMAKE_SOURCE_DIR}/include") + +find_package(GTK2 REQUIRED) +include_directories(${GTK2_INCLUDE_DIRS} ${GTK2_GDK_INCLUDE_DIR} ${GTK2_GLIB_INCLUDE_DIR}) + +find_package(LibXml2 REQUIRED) +include_directories(${LIBXML2_INCLUDE_DIR}) set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/plugins") diff --git a/plugins/CMakeLists.txt b/plugins/CMakeLists.txt index b5bbc4a0..a3563925 100644 --- a/plugins/CMakeLists.txt +++ b/plugins/CMakeLists.txt @@ -1,3 +1,11 @@ +include_directories("${CMAKE_SOURCE_DIR}/libs") +include_directories("${CMAKE_SOURCE_DIR}/include") + +find_package(GTK2 REQUIRED) +include_directories(${GTK2_INCLUDE_DIRS} ${GTK2_GDK_INCLUDE_DIR} ${GTK2_GLIB_INCLUDE_DIR}) + +find_package(LibXml2 REQUIRED) +include_directories(${LIBXML2_INCLUDE_DIR}) set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/modules") -- 2.39.2