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)
|
|
|
|
|
2016-04-05 02:25:05 +01:00
|
|
|
set (CXX_SOURCES
|
2015-07-06 12:01:55 +01:00
|
|
|
yapi.cpp
|
2016-04-05 02:25:05 +01:00
|
|
|
)
|
2015-01-20 03:00:42 +00:00
|
|
|
|
2017-01-09 14:58:57 +00:00
|
|
|
set (CXX_HEADERS
|
|
|
|
yapa.hh
|
|
|
|
yapdb.hh
|
|
|
|
yapi.h
|
|
|
|
yapie.hh
|
|
|
|
yapq.hh
|
|
|
|
- yapt.hh
|
|
|
|
-)
|
2016-04-05 02:25:05 +01:00
|
|
|
|
2016-10-16 23:18:51 +01:00
|
|
|
list(APPEND LIBYAP_SOURCES ${CXX_SOURCES} PARENT_SCOPE)
|
2016-08-01 12:54:28 +01:00
|
|
|
|
2017-02-20 14:38:00 +00:00
|
|
|
if ( WIN32)
|
|
|
|
add_component (YAP++ ${CXX_SOURCES} )
|
|
|
|
|
|
|
|
set_property( DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS "_YAP_NOT_INSTALLED_=1;HAVE_CONFIG_H=1;_GNU_SOURCE;YAP_KERNEL=1" )
|
2016-07-31 10:56:54 +01:00
|
|
|
else()
|
2017-02-20 14:38:00 +00:00
|
|
|
add_external (YAP++ ${CXX_SOURCES} )
|
|
|
|
MY_target_link_libraries(YAP++ ${CMAKE_DL_LIBS} libYap)
|
2015-01-26 04:02:46 +00:00
|
|
|
|
2017-02-20 14:38:00 +00:00
|
|
|
MY_install(TARGETS YAP++
|
2017-05-02 07:38:23 +01:00
|
|
|
LIBRARY DESTINATION ${libdir}
|
2017-02-20 14:38:00 +00:00
|
|
|
RUNTIME DESTINATION ${dlls}
|
2017-05-02 07:38:23 +01:00
|
|
|
ARCHIVE DESTINATION ${libdir}
|
2016-10-16 23:18:51 +01:00
|
|
|
)
|
2016-08-01 12:54:28 +01:00
|
|
|
endif()
|
|
|
|
|
2016-07-31 10:56:54 +01:00
|
|
|
|
2016-10-16 23:18:51 +01:00
|
|
|
include_directories ( . ${CMAKE_BINARY_DIR} ${GMP_INCLUDE_DIRS} ${PYTHON_INCLUDE_DIRS})
|
2016-08-03 00:30:02 +01:00
|
|
|
|
|
|
|
set( CMAKE_REQUIRED_INCLUDES ${CMAKE_REQUIRED_INCLUDES} ${GMP_INCLUDE_DIRS} )
|
|
|
|
|
2016-04-05 02:25:05 +01:00
|
|
|
|
2015-01-20 03:00:42 +00:00
|
|
|
|
2015-01-26 04:02:46 +00:00
|
|
|
#set( CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} ${GMP_LIBRARIES} )
|