-
Notifications
You must be signed in to change notification settings - Fork 3
/
CMakeLists.txt
68 lines (63 loc) · 2.04 KB
/
CMakeLists.txt
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
# ============================================================================
# Copyright (c) 2011-2012 University of Pennsylvania
# Copyright (c) 2013-2016 Andreas Schuh
# All rights reserved.
#
# See COPYING file for license information or visit
# https://cmake-basis.github.io/download.html#license
# ============================================================================
##############################################################################
# @file CMakeLists.txt
# @brief Build configuration of CMake BASIS Modules.
##############################################################################
if (NOT INSTALL_BASIS_MODULES_DIR)
return ()
endif ()
# ----------------------------------------------------------------------------
# install files
set (CMAKE_FIND_MODULES
"FindAFNI.cmake"
"FindARPACK.cmake"
"FindBASH.cmake"
"FindBASIS.cmake"
"FindBLAS.cmake"
"FindBoostNumericBindings.cmake"
"FindEigen3.cmake"
"FindFLANN.cmake"
"FindGMock.cmake"
"FindITK.cmake"
"FindJython.cmake"
"FindJythonInterp.cmake"
"FindLIBLINEAR.cmake"
"FindMATLAB.cmake"
"FindMatlabNiftiTools.cmake"
"FindMIRTK.cmake"
"FindMOSEK.cmake"
"FindNiftiCLib.cmake"
"FindPerl.cmake"
"FindPerlLibs.cmake"
"FindPython.cmake"
"FindPythonInterp.cmake"
"FindPythonModules.cmake"
"FindSparseBayes.cmake"
"FindSphinx.cmake"
"FindSVMTorch.cmake"
"FindTBB.cmake"
"FindUMFPACK.cmake"
"FindWeka.cmake"
)
basis_install (
FILES ${CMAKE_FIND_MODULES}
DESTINATION "${INSTALL_BASIS_MODULES_DIR}"
)
# ----------------------------------------------------------------------------
# make sure that we did not forget to install a file... very easy to forget!
file (GLOB MODULES RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" *)
foreach (F IN LISTS MODULES)
if (NOT F MATCHES "^(COPYING\\.txt|README\\.md|CMakeLists\\.txt|\\..*|.*\\.bak|.*\\.autosave|.*~)$")
list (FIND CMAKE_FIND_MODULES "${F}" IDX)
if (IDX EQUAL -1)
message (WARNING "Seems like ${CMAKE_CURRENT_SOURCE_DIR}/${F} will not be installed!")
endif ()
endif ()
endforeach ()