CMAKE_MINIMUM_REQUIRED(VERSION 2.6 FATAL_ERROR)
CMAKE_POLICY(VERSION 2.6)
-SET(THNN_INSTALL_LIB_SUBDIR "${LUALIBDIR}")
+SET(THNN_INSTALL_LIB_SUBDIR "${RSPAMD_LIBDIR}")
SET(THNN_INSTALL_INCLUDE_SUBDIR "${Torch_INSTALL_INCLUDE_SUBDIR}")
ADD_SUBDIRECTORY(THNN)
\ No newline at end of file
ENDIF (WITH_OPENMP)
SET(src init.c)
-ADD_LIBRARY(THNN MODULE init.c)
+ADD_LIBRARY(THNN SHARED init.c)
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
### Torch packages supposes libraries prefix is "lib"
SET_TARGET_PROPERTIES(THNN PROPERTIES
IMPORT_PREFIX "lib")
TARGET_LINK_LIBRARIES(THNN ${TH_LIBRARIES})
-INSTALL(TARGETS THNN DESTINATION ${LUALIBDIR})
+INSTALL(TARGETS THNN DESTINATION ${RSPAMD_LIBDIR})
ADD_LIBRARY(${package} ${type} ${src})
endif()
ENDIF()
- INSTALL(TARGETS ${package} DESTINATION ${LUALIBDIR})
+ INSTALL(TARGETS ${package} DESTINATION ${RSPAMD_LIBDIR})
ENDMACRO()
MACRO(ADD_TORCH_PACKAGE package src luasrc)
COMPILE_FLAGS "-fPIC")
SET_TARGET_PROPERTIES(${package} PROPERTIES
PREFIX "lib" IMPORT_PREFIX "lib" OUTPUT_NAME "${package}")
- INSTALL(TARGETS ${package} DESTINATION ${LUALIBDIR})
+ INSTALL(TARGETS ${package} DESTINATION ${RSPAMD_LIBDIR})
ENDIF(NOT "${src}" STREQUAL "")
SET(TH_INSTALL_BIN_SUBDIR "${BINDIR}")
-SET(TH_INSTALL_LIB_SUBDIR "${LUALIBDIR}")
+SET(TH_INSTALL_LIB_SUBDIR "${RSPAMD_LIBDIR}")
SET(TH_INSTALL_INCLUDE_SUBDIR "${Torch_INSTALL_INCLUDE_SUBDIR}")
SET(TH_INSTALL_CMAKE_SUBDIR "${Torch_INSTALL_CMAKE_SUBDIR}")