]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
Fix plugin compilation
authorMattia Basaglia <mattia.basaglia@gmail.com>
Wed, 29 Jul 2015 07:06:10 +0000 (09:06 +0200)
committerMattia Basaglia <mattia.basaglia@gmail.com>
Wed, 29 Jul 2015 07:06:10 +0000 (09:06 +0200)
contrib/CMakeLists.txt
plugins/CMakeLists.txt

index 7c2aa7998b0016956560d9c414e07e375a1dfe75..e0f606eb492fca3b139411d2841c8cb36a09c8eb 100644 (file)
@@ -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")
 
index b5bbc4a0aac5f57124e67188693e2c4189a1c2e5..a35639255a10ff1e65f96f11941ba16045466db7 100644 (file)
@@ -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")