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/packages/yap-lbfgs/CMakeLists.txt

46 lines
1.1 KiB
CMake
Raw Normal View History

2018-08-17 17:35:02 +01:00
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}
2018-08-21 03:01:03 +01:00
${CMAKE_SOURCE_DIR}/include
2018-08-17 17:35:02 +01:00
)
2018-09-14 11:28:24 +01:00
SET ( LBFGS_HEADERS ${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 )
2018-08-17 17:35:02 +01:00
SET ( LBFGS_SOURCES
2018-09-14 11:28:24 +01:00
${CMAKE_CURRENT_SOURCE_DIR}/${LBFGS_SRC}/lib/lbfgs.c ${CMAKE_CURRENT_SOURCE_DIR}/yap_lbfgs.c)
2018-08-17 17:35:02 +01:00
add_library(LBFGS
${LBFGS_SOURCES})
TARGET_LINK_LIBRARIES(LBFGS
libYap
)
install(TARGETS LBFGS
2018-11-16 14:02:56 +00:00
LIBRARY DESTINATION ${YAP_INSTALL_LIBDIR}
RUNTIME DESTINATION ${YAP_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${YAP_INSTALL_LIBDIR}
2018-08-17 17:35:02 +01:00
)
2018-11-16 14:02:56 +00:00
INSTALL(FILES lbfgs.pl DESTINATION ${YAP_INSTALL_DATADIR})
2018-08-17 17:35:02 +01:00