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

32 lines
678 B
CMake
Raw Normal View History

2015-01-20 03:00:42 +00:00
2016-02-11 14:20:16 +00:00
# Be sure to also update these in Makefile!
set(SO_MAJOR 1)
set(SO_MINOR 0)
set(SO_PATCH 0)
set (CXX_SOURCES
2015-07-06 12:01:55 +01:00
yapi.cpp
)
2015-01-20 03:00:42 +00:00
2016-07-31 10:56:54 +01:00
list(APPEND LIBYAP_SOURCES ${CXX_SOURCES} PARENT_SCOPE)
2016-08-01 12:54:28 +01:00
if (ANDROID OR WIN32)
add_component (Yap++ ${CXX_SOURCES} )
2016-07-31 10:56:54 +01:00
else()
2016-08-01 12:54:28 +01:00
add_external (Yap++ ${CXX_SOURCES} )
2016-07-31 10:56:54 +01:00
MY_target_link_libraries(Yap++ ${CMAKE_DL_LIBS} libYap)
2015-01-26 04:02:46 +00:00
2016-07-31 10:56:54 +01:00
MY_install(TARGETS Yap++
2016-01-20 22:25:25 +00:00
LIBRARY DESTINATION ${libdir}
ARCHIVE DESTINATION ${libdir}
)
2016-08-01 12:54:28 +01:00
endif()
2016-07-31 10:56:54 +01:00
include_directories (H include ${CMAKE_BINARY_DIR} ${GMP_INCLUDE_DIR})
2015-01-20 03:00:42 +00:00
2015-01-26 04:02:46 +00:00
set( CMAKE_REQUIRED_INCLUDES ${CMAKE_REQUIRED_INCLUDES} ${GMP_INCLUDE_DIR} )
#set( CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} ${GMP_LIBRARIES} )