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

22 lines
568 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
2016-04-05 23:56:25 +01:00
2016-11-08 07:37:36 +00:00
set(CMAKE_SWIG_OUTDIR ${YAP_APP_DIR}/app/src/main/java/pt/up/yap/lib )
2016-08-30 14:29:40 +01:00
2016-11-08 07:37:36 +00:00
set ( SWIG_SOURCES ../yap.i )
2016-04-05 23:56:25 +01:00
SET_SOURCE_FILES_PROPERTIES(${SWIG_SOURCES} PROPERTIES CPLUSPLUS ON)
include_directories (
${CMAKE_SOURCE_DIR}/CXX
2016-11-08 07:37:36 +00:00
)
2016-04-05 23:56:25 +01:00
2016-11-11 07:23:34 +00:00
add_custom_command (OUTPUT yap_swig.cpp
COMMAND ${SWIG} -java -outdir ${CMAKE_SWIG_OUTDIR} -outcurrentdir -addextern -I${CMAKE_SOURCE_DIR}/CXX ${SWIG_SOURCES} -o yap_swig.cpp
2016-11-08 07:37:36 +00:00
)
2016-07-31 17:38:21 +01:00
2016-11-11 07:23:34 +00:00
add_custom_target ( swig ALL
DEPENDS yap_swig.cpp
2016-07-31 17:38:21 +01:00
)
2016-11-08 07:37:36 +00:00