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 b7eb38fc44 shffle
2016-04-05 23:56:25 +01:00

35 lines
728 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
yapa.hh
yapdb.hh
yapi.cpp
yapi.hh
yapie.hh
yapq.hh
yapt.hh
)
if (YAP_SINGLE_FILE)
add_library (Yap++ OBJECT ${CXX_SOURCES} )
else(YAP_SINGLE_FILE)
add_library (Yap++ SHARED ${CXX_SOURCES} )
target_link_libraries(Yap++ ${CMAKE_DL_LIBS} libYap)
install(TARGETS Yap++
LIBRARY DESTINATION ${libdir}
ARCHIVE DESTINATION ${libdir}
)
endif(YAP_SINGLE_FILE)
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} )