Code

cmake: include javainc dir. please check if this works on linux and solaris too
authorjohanengelen <johanengelen@users.sourceforge.net>
Thu, 10 Apr 2008 12:36:35 +0000 (12:36 +0000)
committerjohanengelen <johanengelen@users.sourceforge.net>
Thu, 10 Apr 2008 12:36:35 +0000 (12:36 +0000)
CMakeScripts/ConfigInkscapeDepends.cmake
CMakeScripts/IncludeJava.cmake [new file with mode: 0644]

index 0fc6931542f40ae0aba80c99280bdd5f9f024c5b..88a95636d8ab73970488925939cf566f463d045c 100644 (file)
@@ -50,6 +50,7 @@ ENDFOREACH(dep)
 # Include non pkg-config dependencies:\r
 INCLUDE(FindBoost)\r
 INCLUDE(FindGC)\r
+INCLUDE(IncludeJava)\r
 # end Dependencies\r
 \r
 # Optional Dependencies Packages\r
diff --git a/CMakeScripts/IncludeJava.cmake b/CMakeScripts/IncludeJava.cmake
new file mode 100644 (file)
index 0000000..bd8bdb5
--- /dev/null
@@ -0,0 +1,14 @@
+# - include the src/javainc dir in the include path and the correct config path too\r
+\r
+\r
+INCLUDE_DIRECTORIES( ${CMAKE_SOURCE_DIR}/src/bind/javainc )\r
+\r
+IF (WIN32)\r
+    INCLUDE_DIRECTORIES( ${CMAKE_SOURCE_DIR}/src/bind/javainc/win32 )\r
+ENDIF (WIN32)\r
+IF (UNIX)\r
+    INCLUDE_DIRECTORIES( ${CMAKE_SOURCE_DIR}/src/bind/javainc/linux )\r
+ENDIF (UNIX)\r
+IF (SOLARIS)\r
+    INCLUDE_DIRECTORIES( ${CMAKE_SOURCE_DIR}/src/bind/javainc/solaris )\r
+ENDIF (SOLARIS)\r