diff options
| author | asn <asn@c9f7a03b-bd48-0410-a16d-cbbf54688b0b> | 2010-10-19 17:43:21 +0000 |
|---|---|---|
| committer | asn <asn@c9f7a03b-bd48-0410-a16d-cbbf54688b0b> | 2010-10-19 17:43:21 +0000 |
| commit | 93d5b168b53086d4d48ed763c3255b290d31d972 (patch) | |
| tree | 9858a6990f8e92f7adf109f3d540547368f46c70 /pki/cmake/Modules/UseJava.cmake | |
| parent | b62e915deca1b81ba641d4ac907f03108eac3959 (diff) | |
Added initial files to build with CMake.
This is a start to introduce the CMake build system in pki. These are
the minimum requirements.
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/pki/trunk@1361 c9f7a03b-bd48-0410-a16d-cbbf54688b0b
Diffstat (limited to 'pki/cmake/Modules/UseJava.cmake')
| -rw-r--r-- | pki/cmake/Modules/UseJava.cmake | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/pki/cmake/Modules/UseJava.cmake b/pki/cmake/Modules/UseJava.cmake new file mode 100644 index 000000000..a5a212fd1 --- /dev/null +++ b/pki/cmake/Modules/UseJava.cmake @@ -0,0 +1,26 @@ +#============================================================================= +# Copyright 2002-2009 Kitware, Inc. +# +# Distributed under the OSI-approved BSD License (the "License"); +# see accompanying file Copyright.txt for details. +# +# This software is distributed WITHOUT ANY WARRANTY; without even the +# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +# See the License for more information. +#============================================================================= +# (To distributed this file outside of CMake, substitute the full +# License text for the above reference.) + +function(ADD_JNI_HEADERS _CLASSPATH _CLASSNAMES _HEADERS _DEPENDS) + add_custom_command( + OUTPUT + ${_HEADERS} + COMMAND ${JAVA_HEADER} + -classpath ${_CLASSPATH} + -jni + -d ${CMAKE_CURRENT_BINARY_DIR} + ${_CLASSNAMES} + DEPENDS + ${_DEPENDS} + ) +endfunction(ADD_JNI_HEADERS) |
