File: CMakeLists.txt

package info (click to toggle)
vtk 5.8.0-13
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 130,524 kB
  • sloc: cpp: 1,129,256; ansic: 708,203; tcl: 48,526; python: 20,875; xml: 6,779; yacc: 4,208; perl: 3,121; java: 2,788; lex: 931; sh: 660; asm: 471; makefile: 299
file content (94 lines) | stat: -rw-r--r-- 2,717 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
project( alglib )

cmake_minimum_required( VERSION 2.4 )

if ( NOT LIBRARY_OUTPUT_PATH )
  set( LIBRARY_OUTPUT_PATH ${alglib_BINARY_DIR}/bin CACHE INTERNAL "" FORCE )
endif ( NOT LIBRARY_OUTPUT_PATH )
if ( NOT EXECUTABLE_OUTPUT_PATH )
  set( EXECUTABLE_OUTPUT_PATH ${alglib_BINARY_DIR}/bin CACHE INTERNAL "" FORCE )
endif ( NOT EXECUTABLE_OUTPUT_PATH )

set( ALGLIB_SRCS
  ap.cpp
  bdsvd.cpp
  bidiagonal.cpp
  blas.cpp
  lq.cpp
  qr.cpp
  reflections.cpp
  rotations.cpp
  svd.cpp
)

set( ALGLIB_SHARED_LIB ${BUILD_SHARED_LIBS} CACHE INTERNAL "" FORCE )
configure_file(
  ${alglib_SOURCE_DIR}/alglib/ap.h.in
  ${alglib_BINARY_DIR}/alglib/ap.h
  @ONLY
)

include_directories(
  ${alglib_SOURCE_DIR}
  ${alglib_BINARY_DIR}
)

vtk_add_library( vtkalglib
  ${ALGLIB_SRCS}
)

# Apply user-defined properties to the library target.
if ( VTK_LIBRARY_PROPERTIES )
  set_target_properties( vtkalglib PROPERTIES ${VTK_LIBRARY_PROPERTIES} )
endif ( VTK_LIBRARY_PROPERTIES )

#
# Install rules
#

# Grab install locations from VTK if we are building as part of VTK
if ( VTK_INSTALL_BIN_DIR_CM24 )
  set( alglib_install_bin_dir ${VTK_INSTALL_BIN_DIR_CM24} )
else ( VTK_INSTALL_BIN_DIR_CM24 )
  set( alglib_install_bin_dir ${CMAKE_INSTALL_PREFIX}/bin )
endif ( VTK_INSTALL_BIN_DIR_CM24 )

if ( VTK_INSTALL_LIB_DIR_CM24 )
  set( alglib_install_lib_dir ${VTK_INSTALL_LIB_DIR_CM24} )
else ( VTK_INSTALL_LIB_DIR_CM24 )
  set( alglib_install_lib_dir ${CMAKE_INSTALL_PREFIX}/lib )
endif ( VTK_INSTALL_LIB_DIR_CM24 )

if ( VTK_INSTALL_INCLUDE_DIR_CM24 )
  set( alglib_install_inc_dir ${VTK_INSTALL_INCLUDE_DIR_CM24} )
else ( VTK_INSTALL_INCLUDE_DIR_CM24 )
  set( alglib_install_inc_dir ${CMAKE_INSTALL_PREFIX}/include )
endif ( VTK_INSTALL_INCLUDE_DIR_CM24 )

# Library:
if ( NOT VTK_INSTALL_NO_LIBRARIES )
  install( TARGETS vtkalglib
    EXPORT ${VTK_INSTALL_EXPORT_NAME}
    RUNTIME DESTINATION ${alglib_install_bin_dir} COMPONENT RuntimeLibraries
    LIBRARY DESTINATION ${alglib_install_lib_dir} COMPONENT RuntimeLibraries
    ARCHIVE DESTINATION ${alglib_install_lib_dir} COMPONENT Development
  )
endif ( NOT VTK_INSTALL_NO_LIBRARIES )

# Header files:
if ( NOT VTK_INSTALL_NO_DEVELOPMENT )
  install( FILES
    ${alglib_SOURCE_DIR}/alglib/apvt.h
    ${alglib_SOURCE_DIR}/alglib/bdsvd.h
    ${alglib_SOURCE_DIR}/alglib/bidiagonal.h
    ${alglib_SOURCE_DIR}/alglib/blas.h
    ${alglib_SOURCE_DIR}/alglib/lq.h
    ${alglib_SOURCE_DIR}/alglib/qr.h
    ${alglib_SOURCE_DIR}/alglib/reflections.h
    ${alglib_SOURCE_DIR}/alglib/rotations.h
    ${alglib_SOURCE_DIR}/alglib/svd.h
    ${alglib_BINARY_DIR}/alglib/ap.h
    DESTINATION ${alglib_install_inc_dir}/alglib
    COMPONENT Development
  )
endif ( NOT VTK_INSTALL_NO_DEVELOPMENT )