This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
yap-6.3/packages/swig/android/CMakeLists.txt

26 lines
672 B
CMake
Raw Normal View History

2016-04-05 23:56:25 +01:00
2016-07-31 17:38:21 +01:00
# This is a CMake example for Python and Java
INCLUDE(UseJava)
2016-04-05 23:56:25 +01:00
2016-07-31 17:38:21 +01:00
# set(ANDROID_SO_OUTDIR ${libdir})
# set(CMAKE_SWIG_OUTDIR ${CMAKE_SOURCE_DIR}/android/yaplib/build/generated/source/pt/up/yap/lib)
#set(CMAKE_SWIG_OUTDIR ${CMAKE_CURRENT_BINARY_DIR}/derived)
2016-04-05 23:56:25 +01:00
2016-08-30 14:29:40 +01:00
2016-04-05 23:56:25 +01:00
SET_SOURCE_FILES_PROPERTIES(${SWIG_SOURCES} PROPERTIES CPLUSPLUS ON)
include_directories (
${CMAKE_SOURCE_DIR}/CXX
${JAVA_INCLUDE_DIRS}
${JNI_INCLUDE_DIRS}
)
2016-07-31 17:38:21 +01:00
2016-08-30 14:29:40 +01:00
add_custom_command (OUTPUT ${SWIG_CXX}
COMMAND ${SWIG} -java -outdir ${CMAKE_CURRENT_BINARY_DIR} -c++ -addextern -I${CMAKE_SOURCE_DIR}/CXX ${SWIG_SOURCES} -o ${SWIG_CXX}
${SWIG_SOURCES}
2016-07-31 17:38:21 +01:00
)