1
1
cmake_minimum_required (VERSION 3.11 )
2
2
3
+ set (SYSTEM_INFO_BUILD_RDF_INTERFACES ON )
4
+
3
5
## Specify the top level name of the project - this will define the solution name for Visual Studio
4
6
project (RMV )
5
7
6
8
# Define version information
7
9
set (RMV_MAJOR_VERSION 1 )
8
- set (RMV_MINOR_VERSION 5 )
10
+ set (RMV_MINOR_VERSION 6 )
9
11
if (NOT RMV_BUGFIX_NUMBER )
10
12
set (RMV_BUGFIX_NUMBER 0 )
11
13
endif ()
@@ -19,6 +21,9 @@ string(TIMESTAMP YEAR_STRING "\"%Y\"")
19
21
configure_file ("${CMAKE_SOURCE_DIR} /Buildinfo.properties.in" "${CMAKE_SOURCE_DIR} /Buildinfo.properties" )
20
22
configure_file ("${CMAKE_SOURCE_DIR} /source/frontend/util/version.h.in" "${CMAKE_SOURCE_DIR} /source/frontend/util/version.h" )
21
23
24
+ option (RDF_ENABLE_CXX_BINDINGS "Allow usage of C++ interface for RDF library" ON )
25
+ option (RDF_STATIC "Build RDF as a static library" ON )
26
+
22
27
## For RMV we only care about the Debug and Release configuration types
23
28
set (CMAKE_CONFIGURATION_TYPES Debug Release )
24
29
@@ -30,35 +35,36 @@ IF(CMAKE_SIZEOF_VOID_P EQUAL 8)
30
35
ENDIF ()
31
36
32
37
# As default for RMV, include the debug & internal status in filename - but not the platform bitness
33
- set (CMAKE_DEBUG_POSTFIX -d${ADT_INTERNAL_POSTFIX} )
34
- set (CMAKE_RELEASE_POSTFIX ${ADT_INTERNAL_POSTFIX} )
38
+ set (CMAKE_DEBUG_POSTFIX -d )
39
+ set (CMAKE_RELEASE_POSTFIX )
35
40
36
41
IF (WIN32 )
37
- set (CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE ${CMAKE_BINARY_DIR} /../release${ADT_INTERNAL_POSTFIX_LOWER} )
38
- set (CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG ${CMAKE_BINARY_DIR} /../debug${ADT_INTERNAL_POSTFIX_LOWER} )
42
+ set (CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE ${CMAKE_BINARY_DIR} /../release )
43
+ set (CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG ${CMAKE_BINARY_DIR} /../debug )
39
44
ELSE (WIN32 )
40
- set (CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE ${CMAKE_BINARY_DIR} /../../release${ADT_INTERNAL_POSTFIX_LOWER} )
41
- set (CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG ${CMAKE_BINARY_DIR} /../../debug${ADT_INTERNAL_POSTFIX_LOWER} )
45
+ set (CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE ${CMAKE_BINARY_DIR} /../../release )
46
+ set (CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG ${CMAKE_BINARY_DIR} /../../debug )
42
47
ENDIF (WIN32 )
43
48
44
49
# Add for CentOS compiler warning
45
50
add_definitions (-DJSON_SKIP_UNSUPPORTED_COMPILER_CHECK )
46
51
47
52
include_directories ("${PROJECT_SOURCE_DIR} /external/qt_common/" )
48
53
include_directories ("${PROJECT_SOURCE_DIR} /external/" )
54
+ include_directories ("${PROJECT_SOURCE_DIR} /external/third_party/" )
49
55
50
56
# Global compiler options
51
57
IF (WIN32 )
52
58
add_compile_options (/MP )
53
59
# bump the stack size
54
60
add_link_options (/STACK:16777216 )
55
61
ELSEIF (UNIX )
56
- # Use -Wno-missing-field-initializers for CentOS compiler warning
57
- add_compile_options (-D_LINUX -Wall -Wextra -Wno-missing-field-initializers )
62
+ add_compile_options (-D_LINUX -mno-avx2 )
58
63
# Allow executable to be double clicked.
59
64
add_link_options (-no-pie )
60
65
# Use _DEBUG on Unix for Debug Builds (defined automatically on Windows)
61
66
set (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -D_DEBUG" )
67
+ set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC" )
62
68
ENDIF (WIN32 )
63
69
64
70
IF (WIN32 )
@@ -87,8 +93,14 @@ MACRO(SOURCE_GROUP_BY_FOLDER target)
87
93
ENDIF (files )
88
94
ENDMACRO (SOURCE_GROUP_BY_FOLDER )
89
95
96
+ # Define C++ standard for RMV
97
+ set (CMAKE_CXX_STANDARD 17 )
98
+
90
99
add_subdirectory (external/qt_common/custom_widgets QtCommon/custom_widgets )
91
100
add_subdirectory (external/qt_common/utils QtCommon/utils )
101
+ add_subdirectory (external/rdf/imported/zstd )
102
+ add_subdirectory (external/rdf/rdf )
103
+ add_subdirectory (external/system_info_utils )
92
104
add_subdirectory (source /parser parser )
93
105
add_subdirectory (source /backend backend )
94
106
add_subdirectory (source /frontend frontend )
@@ -185,5 +197,5 @@ add_custom_command(TARGET Documentation POST_BUILD
185
197
COMMAND ${CMAKE_COMMAND} -E copy_if_different ${RELEASE_DOCS_IN_ROOT} ${DOCS_OUTPUT_DIR} /.
186
198
COMMAND ${CMAKE_COMMAND} -E echo "copying Samples to output directory"
187
199
COMMAND ${CMAKE_COMMAND} -E make_directory ${DOCS_OUTPUT_DIR} /samples
188
- COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_SOURCE_DIR} /samples/sampleTrace .rmv ${DOCS_OUTPUT_DIR} /samples/sample_trace.rmv
200
+ COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_SOURCE_DIR} /samples/sample_trace .rmv ${DOCS_OUTPUT_DIR} /samples/.
189
201
)
0 commit comments