aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CMakeLists.txt
diff options
context:
space:
mode:
authoryuta.256 <yuta.256@b7c3aa3b-274f-0410-ae0b-edc9d07c929d>2008-07-03 11:34:07 +0000
committeryuta.256 <yuta.256@b7c3aa3b-274f-0410-ae0b-edc9d07c929d>2008-07-03 11:34:07 +0000
commit0b0d08bc414f9152b0f7afac36b56b4b30e2679f (patch)
treee16f192f3e8cfab1a5443b6b62cbd4711fba965b /lib/CMakeLists.txt
parent176b6c50446b4f7ae1e284ae2287f8b1c62811fd (diff)
downloadplatform_external_libdivsufsort-0b0d08bc414f9152b0f7afac36b56b4b30e2679f.tar.gz
platform_external_libdivsufsort-0b0d08bc414f9152b0f7afac36b56b4b30e2679f.tar.bz2
platform_external_libdivsufsort-0b0d08bc414f9152b0f7afac36b56b4b30e2679f.zip
The build system was changed to CMake. (http://www.cmake.org/)
Diffstat (limited to 'lib/CMakeLists.txt')
-rw-r--r--lib/CMakeLists.txt14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt
new file mode 100644
index 0000000..e8c5295
--- /dev/null
+++ b/lib/CMakeLists.txt
@@ -0,0 +1,14 @@
+include_directories("${CMAKE_CURRENT_SOURCE_DIR}/../include"
+ "${CMAKE_CURRENT_BINARY_DIR}/../include")
+
+## libdivsufsort ##
+add_library(divsufsort divsufsort.c substringsort.c trsort.c utils.c)
+install(TARGETS divsufsort
+ RUNTIME DESTINATION bin
+ LIBRARY DESTINATION lib
+ ARCHIVE DESTINATION lib)
+set_target_properties(divsufsort PROPERTIES
+ VERSION "${LIBRARY_VERSION_FULL}"
+ SOVERSION "${LIBRARY_VERSION_MAJOR}"
+ DEFINE_SYMBOL DIVSUFSORT_BUILD_DLL
+ RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/../examples")