From: Mattia Basaglia Date: Wed, 29 Jul 2015 07:06:10 +0000 (+0200) Subject: Fix plugin compilation X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=46659e2423915df17245396d1aaf56757e346554;p=xonotic%2Fnetradiant.git Fix plugin compilation --- 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")