1 |
jlec 12/05/30 12:34:19 |
2 |
|
3 |
Added: CMakeLists.txt |
4 |
Log: |
5 |
sci-libs/neartree: Clean buildsystem and move to cmake instead of patching |
6 |
|
7 |
(Portage version: 2.2.0_alpha108/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 sci-libs/neartree/files/CMakeLists.txt |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/neartree/files/CMakeLists.txt?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/neartree/files/CMakeLists.txt?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: CMakeLists.txt |
16 |
=================================================================== |
17 |
cmake_minimum_required(VERSION 2.8) |
18 |
project (Neartree C) |
19 |
|
20 |
SET (LIB_MAJOR 5) |
21 |
SET (LIB_MINOR 1) |
22 |
SET (LIB_RELEASE 0) |
23 |
|
24 |
SET (_soversion ${LIB_MAJOR}.${LIB_MINOR}.${LIB_RELEASE}) |
25 |
|
26 |
include_directories ("${PROJECT_SOURCE_DIR}") |
27 |
|
28 |
add_library(CNearTree SHARED CNearTree.c) |
29 |
target_link_libraries(CNearTree CVector m) |
30 |
|
31 |
set_target_properties(CNearTree PROPERTIES SOVERSION ${LIB_MAJOR} VERSION ${_soversion}) |
32 |
|
33 |
INSTALL(TARGETS CNearTree DESTINATION ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}) |
34 |
install(FILES CNearTree.h rhrand.h TNear.h triple.h |
35 |
DESTINATION ${CMAKE_INSTALL_PREFIX}/include) |
36 |
install(FILES README_NearTree.txt DESTINATION ${CMAKE_INSTALL_PREFIX}/share/doc/neartree-${LIB_MAJOR}.${LIB_MINOR}.${LIB_RELEASE}) |
37 |
install(FILES README_NearTree.html index.html DESTINATION ${CMAKE_INSTALL_PREFIX}/share/doc/neartree-${LIB_MAJOR}.${LIB_MINOR}.${LIB_RELEASE}/html) |