-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
41 lines (32 loc) · 1.16 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
cmake_minimum_required (VERSION 3.19 FATAL_ERROR)
project (SAXSVIEW C CXX)
set (CMAKE_VERBOSE_MAKEFILE OFF)
if (NOT CMAKE_BUILD_TYPE)
set (CMAKE_BUILD_TYPE "Debug" CACHE STRING "Build type (Debug or Release)" FORCE)
endif (NOT CMAKE_BUILD_TYPE)
set (CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake ${CMAKE_MODULE_PATH})
set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
include (flags)
include (macros)
include (install)
include (packaging)
find_package (Qt5 5.12.0
COMPONENTS Core
DBus # platforms (cocoa, X) depend on DBus
Gui
Widgets
PrintSupport # Qwt
Svg # Qwt
OpenGL # Qwt
REQUIRED)
configure_file (config.h.in ${CMAKE_CURRENT_BINARY_DIR}/config.h)
include_directories(${SAXSVIEW_BINARY_DIR})
add_subdirectory (admin)
add_subdirectory (external)
add_subdirectory (libsaxsdocument)
add_subdirectory (libsaxsimage)
add_subdirectory (libsaxsview)
add_subdirectory (saxsview)
include (postinstall)
ENABLE_TESTING()
add_subdirectory (testsuite)