From 96a88151fd060c24e3b9efbb844539b43bd29d9f Mon Sep 17 00:00:00 2001 From: johanengelen Date: Thu, 10 Apr 2008 12:36:35 +0000 Subject: [PATCH] cmake: include javainc dir. please check if this works on linux and solaris too --- CMakeScripts/ConfigInkscapeDepends.cmake | 1 + CMakeScripts/IncludeJava.cmake | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 CMakeScripts/IncludeJava.cmake diff --git a/CMakeScripts/ConfigInkscapeDepends.cmake b/CMakeScripts/ConfigInkscapeDepends.cmake index 0fc693154..88a95636d 100644 --- a/CMakeScripts/ConfigInkscapeDepends.cmake +++ b/CMakeScripts/ConfigInkscapeDepends.cmake @@ -50,6 +50,7 @@ ENDFOREACH(dep) # Include non pkg-config dependencies: INCLUDE(FindBoost) INCLUDE(FindGC) +INCLUDE(IncludeJava) # end Dependencies # Optional Dependencies Packages diff --git a/CMakeScripts/IncludeJava.cmake b/CMakeScripts/IncludeJava.cmake new file mode 100644 index 000000000..bd8bdb58e --- /dev/null +++ b/CMakeScripts/IncludeJava.cmake @@ -0,0 +1,14 @@ +# - include the src/javainc dir in the include path and the correct config path too + + +INCLUDE_DIRECTORIES( ${CMAKE_SOURCE_DIR}/src/bind/javainc ) + +IF (WIN32) + INCLUDE_DIRECTORIES( ${CMAKE_SOURCE_DIR}/src/bind/javainc/win32 ) +ENDIF (WIN32) +IF (UNIX) + INCLUDE_DIRECTORIES( ${CMAKE_SOURCE_DIR}/src/bind/javainc/linux ) +ENDIF (UNIX) +IF (SOLARIS) + INCLUDE_DIRECTORIES( ${CMAKE_SOURCE_DIR}/src/bind/javainc/solaris ) +ENDIF (SOLARIS) -- 2.30.2