summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2012-05-30 12:34:19 +0000
committerJustin Lecher <jlec@gentoo.org>2012-05-30 12:34:19 +0000
commit62e7d7b5b335874e9e8364b3611535b0f774e098 (patch)
treeb3ad69db5705ae2df289985a7dc1d88959fd318f /sci-libs/neartree/files
parentkeyword ~amd64-fbsd (diff)
downloadgentoo-2-62e7d7b5b335874e9e8364b3611535b0f774e098.tar.gz
gentoo-2-62e7d7b5b335874e9e8364b3611535b0f774e098.tar.bz2
gentoo-2-62e7d7b5b335874e9e8364b3611535b0f774e098.zip
sci-libs/neartree: Clean buildsystem and move to cmake instead of patching
(Portage version: 2.2.0_alpha108/cvs/Linux x86_64)
Diffstat (limited to 'sci-libs/neartree/files')
-rw-r--r--sci-libs/neartree/files/CMakeLists.txt21
1 files changed, 21 insertions, 0 deletions
diff --git a/sci-libs/neartree/files/CMakeLists.txt b/sci-libs/neartree/files/CMakeLists.txt
new file mode 100644
index 000000000000..4d2f07eab958
--- /dev/null
+++ b/sci-libs/neartree/files/CMakeLists.txt
@@ -0,0 +1,21 @@
+cmake_minimum_required(VERSION 2.8)
+project (Neartree C)
+
+SET (LIB_MAJOR 5)
+SET (LIB_MINOR 1)
+SET (LIB_RELEASE 0)
+
+SET (_soversion ${LIB_MAJOR}.${LIB_MINOR}.${LIB_RELEASE})
+
+include_directories ("${PROJECT_SOURCE_DIR}")
+
+add_library(CNearTree SHARED CNearTree.c)
+target_link_libraries(CNearTree CVector m)
+
+set_target_properties(CNearTree PROPERTIES SOVERSION ${LIB_MAJOR} VERSION ${_soversion})
+
+INSTALL(TARGETS CNearTree DESTINATION ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR})
+install(FILES CNearTree.h rhrand.h TNear.h triple.h
+ DESTINATION ${CMAKE_INSTALL_PREFIX}/include)
+install(FILES README_NearTree.txt DESTINATION ${CMAKE_INSTALL_PREFIX}/share/doc/neartree-${LIB_MAJOR}.${LIB_MINOR}.${LIB_RELEASE})
+install(FILES README_NearTree.html index.html DESTINATION ${CMAKE_INSTALL_PREFIX}/share/doc/neartree-${LIB_MAJOR}.${LIB_MINOR}.${LIB_RELEASE}/html)