• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1include_directories("${CMAKE_CURRENT_SOURCE_DIR}/../include"
2                    "${CMAKE_CURRENT_BINARY_DIR}/../include")
3
4set(divsufsort_SRCS divsufsort.c sssort.c trsort.c utils.c)
5
6## libdivsufsort ##
7add_library(divsufsort ${divsufsort_SRCS})
8install(TARGETS divsufsort
9  RUNTIME DESTINATION ${CMAKE_INSTALL_RUNTIMEDIR}
10  LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
11  ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
12set_target_properties(divsufsort PROPERTIES
13  VERSION   "${LIBRARY_VERSION}"
14  SOVERSION "${LIBRARY_SOVERSION}"
15  DEFINE_SYMBOL DIVSUFSORT_BUILD_DLL
16  RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/../examples")
17
18## libdivsufsort64 ##
19if(BUILD_DIVSUFSORT64)
20  add_library(divsufsort64 ${divsufsort_SRCS})
21  install(TARGETS divsufsort64
22    RUNTIME DESTINATION ${CMAKE_INSTALL_RUNTIMEDIR}
23    LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
24    ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
25  set_target_properties(divsufsort64 PROPERTIES
26    VERSION   "${LIBRARY_VERSION}"
27    SOVERSION "${LIBRARY_SOVERSION}"
28    DEFINE_SYMBOL DIVSUFSORT_BUILD_DLL
29    COMPILE_FLAGS "-DBUILD_DIVSUFSORT64"
30    RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/../examples")
31endif(BUILD_DIVSUFSORT64)
32