aboutsummaryrefslogtreecommitdiffstats
path: root/pkgconfig/CMakeLists.txt
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2016-07-24 20:39:43 +0000
committerXin LI <delphij@FreeBSD.org>2016-07-24 20:39:43 +0000
commit7db3f078630cfaac36b16a61362821443c0f7229 (patch)
tree8f5d4f820d4e3f425b2873efe68942716ef4f767 /pkgconfig/CMakeLists.txt
downloadsrc-vendor/libdivsufsort.tar.gz
src-vendor/libdivsufsort.zip
Vendor import of libdivsufsort, a software library that implementsvendor/libdivsufsort/0.0.2015.10.27vendor/libdivsufsort
a lightweight suffix array construction algorithm. Obtained from: https://github.com/y-256/libdivsufsort
Notes
Notes: svn path=/vendor/libdivsufsort/dist/; revision=303275 svn path=/vendor/libdivsufsort/0.0.2015.10.27/; revision=303276; tag=vendor/libdivsufsort/0.0.2015.10.27
Diffstat (limited to 'pkgconfig/CMakeLists.txt')
-rw-r--r--pkgconfig/CMakeLists.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgconfig/CMakeLists.txt b/pkgconfig/CMakeLists.txt
new file mode 100644
index 000000000000..ee7063c988ef
--- /dev/null
+++ b/pkgconfig/CMakeLists.txt
@@ -0,0 +1,9 @@
+## generate libdivsufsort.pc ##
+set(W64BIT "")
+configure_file("${CMAKE_CURRENT_SOURCE_DIR}/libdivsufsort.pc.cmake" "${CMAKE_CURRENT_BINARY_DIR}/libdivsufsort.pc" @ONLY)
+install(FILES "${CMAKE_CURRENT_BINARY_DIR}/libdivsufsort.pc" DESTINATION ${CMAKE_INSTALL_PKGCONFIGDIR})
+if(BUILD_DIVSUFSORT64)
+ set(W64BIT "64")
+ configure_file("${CMAKE_CURRENT_SOURCE_DIR}/libdivsufsort.pc.cmake" "${CMAKE_CURRENT_BINARY_DIR}/libdivsufsort64.pc" @ONLY)
+ install(FILES "${CMAKE_CURRENT_BINARY_DIR}/libdivsufsort64.pc" DESTINATION ${CMAKE_INSTALL_PKGCONFIGDIR})
+endif(BUILD_DIVSUFSORT64)