CMakeLists.txt 1.82 KB
Newer Older
1
2
3
4
#
# @author Tobias Weber
# @date Apr-2018
# @license GPLv3, see 'LICENSE' file
Tobias WEBER's avatar
Tobias WEBER committed
5
# @desc The present version was forked on 8-Nov-2018 from my privately developed "magtools" project (https://github.com/t-weber/magtools).
6
#
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# ----------------------------------------------------------------------------
# mag-core (part of the Takin software suite)
# Copyright (C) 2018-2021  Tobias WEBER (Institut Laue-Langevin (ILL),
#                          Grenoble, France).
# "magtools" project
# Copyright (C) 2017-2018  Tobias WEBER (privately developed).
#
# 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/>.
# ----------------------------------------------------------------------------
#

Tobias WEBER's avatar
Tobias WEBER committed
28
project(magsgbrowser)
29
30
31
32
33
34
35
cmake_minimum_required(VERSION 3.0)

find_package(Qt5 REQUIRED COMPONENTS Core Gui Widgets)

set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)

Tobias WEBER's avatar
Tobias WEBER committed
36
37
set(CMAKE_CXX_STANDARD 20)
add_definitions(-std=c++20)
Tobias WEBER's avatar
Tobias WEBER committed
38
39
include_directories("${PROJECT_SOURCE_DIR}" "../.."
	"../../ext/gemmi/include" "../../ext/gemmi/third_party")
40
41
42
43


# -----------------------------------------------------------------------------
# main program
Tobias WEBER's avatar
Tobias WEBER committed
44
add_executable(takin_magsgbrowser
45
46
47
48
	main.cpp
	browser.cpp browser.h
)

Tobias WEBER's avatar
Tobias WEBER committed
49
target_link_libraries(takin_magsgbrowser
50
51
52
53
	Qt5::Core Qt5::Gui Qt5::Widgets
)
# -----------------------------------------------------------------------------