From dc6a21dbc519c45e2b053af4f4f4a32cd4f74584 Mon Sep 17 00:00:00 2001 From: Vitor Santos Costa Date: Fri, 17 Aug 2018 17:35:02 +0100 Subject: [PATCH] rational trees, problog, lbfgs --- packages/yap-lbfgs/CMakeLists.txt | 41 +++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 packages/yap-lbfgs/CMakeLists.txt diff --git a/packages/yap-lbfgs/CMakeLists.txt b/packages/yap-lbfgs/CMakeLists.txt new file mode 100644 index 000000000..9dfb59cd0 --- /dev/null +++ b/packages/yap-lbfgs/CMakeLists.txt @@ -0,0 +1,41 @@ +CMAKE_MINIMUM_REQUIRED ( VERSION 2.8 ) + +PROJECT ( YAP_RAPTOR C ) + +SET ( YAP_RAPTOR_VERSION 0.1) + +if (NOT YAP_FOUND) + FIND_PACKAGE(YAP REQUIRED) +ENDIF (NOT YAP_FOUND) +IF (NOT YAP_FOUND) + MESSAGE (SEND_ERROR "YAP was not found!") +ENDIF (NOT YAP_FOUND) + + set (LBFGS_SRC liblbfgs-1.10) + + INCLUDE_DIRECTORIES( + ${CMAKE_CURRENT_SOURCE_DIR}/${LBFGS_SRC}/include + ${CMAKE_CURRENT_BINARY_DIR} + ) + + SET ( LBFGS_SOURCES + + ${CMAKE_CURRENT_SOURCE_DIR}/${LBFGS_SRC}/lib/arithmetic_ansi.h ${CMAKE_CURRENT_SOURCE_DIR}/${LBFGS_SRC}/lib/arithmetic_sse_double.h ${CMAKE_CURRENT_SOURCE_DIR}/${LBFGS_SRC}/lib/arithmetic_sse_float.h ${CMAKE_CURRENT_SOURCE_DIR}/${LBFGS_SRC}/lib/lbfgs.c yap_lbfgs.c) + + add_library(LBFGS + ${LBFGS_SOURCES}) + + TARGET_LINK_LIBRARIES(LBFGS + libYap + ) + + + install(TARGETS LBFGS + LIBRARY DESTINATION ${YAP_INSTALL_DLLDIR} + RUNTIME DESTINATION ${YAP_INSTALL_DLLDIR} + ARCHIVE DESTINATION ${libdir} + + ) + + INSTALL(FILES lbfgs.yap DESTINATION ${libpl}) +