-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
120 lines (100 loc) · 4.92 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
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
#
# @author Tobias Weber <[email protected]>
# @date 17-jun-2019
# @license see 'LICENSE' file
#
# ----------------------------------------------------------------------------
# magpie (part of the Takin software suite)
# Copyright (C) 2018-2025 Tobias WEBER (Institut Laue-Langevin (ILL),
# Grenoble, France).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, version 3 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# ----------------------------------------------------------------------------
#
cmake_minimum_required(VERSION 3.5)
project(magpie)
option(BUILD_PY_MODULES "build py modules" TRUE)
option(ONLY_BUILD_FINISHED "only build finished tools" TRUE)
# mingw settings
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
set(Boost_USE_STATIC_LIBS FALSE)
endif()
# magnetic dynamics tool
message("\n================================================================================")
message("Configuring magdyn...")
message("================================================================================")
add_subdirectory(tools/magdyn)
# Brillouin zone tool
message("\n================================================================================")
message("Configuring bz...")
message("================================================================================")
add_subdirectory(tools/bz)
# cif converter
message("\n================================================================================")
message("Configuring cif2xml...")
message("================================================================================")
add_subdirectory(tools/cif2xml)
# nuclear structure factor tool
message("\n================================================================================")
message("Configuring structfact...")
message("================================================================================")
add_subdirectory(tools/structfact)
# magnetic structure factor tool
message("\n================================================================================")
message("Configuring magstructfact...")
message("================================================================================")
add_subdirectory(tools/magstructfact)
if(NOT ONLY_BUILD_FINISHED)
# scan browser tool
message("\n================================================================================")
message("Configuring scanbrowser...")
message("================================================================================")
add_subdirectory(tools/scanbrowser)
# setup tools for magnetic space groups
message("\n================================================================================")
message("Configuring setup...")
message("================================================================================")
add_subdirectory(tools/magsgbrowser/setup)
# magnetic space group browser
message("\n================================================================================")
message("Configuring magsgbrowser...")
message("================================================================================")
add_subdirectory(tools/magsgbrowser)
# molecular dynamics tool
message("\n================================================================================")
message("Configuring moldyn...")
message("================================================================================")
add_subdirectory(tools/moldyn)
# tlibs2 script compiler
message("\n================================================================================")
message("Configuring mcalc...")
message("================================================================================")
add_subdirectory(tlibs2/script)
endif()
if(BUILD_PY_MODULES)
# magnetic dynamics
message("\n================================================================================")
message("Configuring py-magdyn...")
message("================================================================================")
add_subdirectory(tools_py/magdyn)
# brillouin zones
message("\n================================================================================")
message("Configuring py-bz...")
message("================================================================================")
add_subdirectory(tools_py/bz)
# instrument data file loader
message("\n================================================================================")
message("Configuring py-instr...")
message("================================================================================")
add_subdirectory(tools_py/instr)
endif()