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/CXX/CMakeLists.txt
Vitor Santos Costa 5584eb1a55 Android support
2016-07-31 04:56:54 -05:00

29 lines
629 B
CMake

# Be sure to also update these in Makefile!
set(SO_MAJOR 1)
set(SO_MINOR 0)
set(SO_PATCH 0)
set (CXX_SOURCES
yapi.cpp
)
list(APPEND LIBYAP_SOURCES ${CXX_SOURCES} PARENT_SCOPE)
add_external (Yap++ ${CXX_SOURCES} )
if (ANDROID)
else()
MY_target_link_libraries(Yap++ ${CMAKE_DL_LIBS} libYap)
endif()
MY_install(TARGETS Yap++
LIBRARY DESTINATION ${libdir}
ARCHIVE DESTINATION ${libdir}
)
include_directories (H include ${CMAKE_BINARY_DIR} ${GMP_INCLUDE_DIR})
set( CMAKE_REQUIRED_INCLUDES ${CMAKE_REQUIRED_INCLUDES} ${GMP_INCLUDE_DIR} )
#set( CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} ${GMP_LIBRARIES} )