-
Notifications
You must be signed in to change notification settings - Fork 5
/
CMakeLists.txt
137 lines (122 loc) · 3.99 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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
cmake_minimum_required( VERSION 3.2 )
# Create Project
project( E57Converter )
#
if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
set ( CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT OFF )
#set(CMAKE_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX}/${PROJECT_NAME})
SET(CMAKE_INSTALL_PREFIX "${CMAKE_CURRENT_SOURCE_DIR}/../install/" CACHE PATH "${CMAKE_CURRENT_SOURCE_DIR}/../install/" FORCE)
endif(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules/")
# Use folders (for IDE project grouping)
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
#
if(NOT IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/Xerces-C")
message(FATAL_ERROR "The Xerces-C submodule directory is missing! "
"You probably did not clone the project with --recursive. It is possible to recover "
"by running \"git submodule update --init --recursive\"")
endif()
if(NOT IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/libE57Format")
message(FATAL_ERROR "The libE57Format submodule directory is missing! "
"You probably did not clone the project with --recursive. It is possible to recover "
"by running \"git submodule update --init --recursive\"")
endif()
if(NOT IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/Json")
message(FATAL_ERROR "The Json submodule directory is missing! "
"You probably did not clone the project with --recursive. It is possible to recover "
"by running \"git submodule update --init --recursive\"")
endif()
if(NOT IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/Half")
message(FATAL_ERROR "The Half submodule directory is missing! "
"You probably did not clone the project with --recursive. It is possible to recover "
"by running \"git submodule update --init --recursive\"")
endif()
# XercesC
add_subdirectory (Xerces-C)
# XercesC Documentation
set(XercesC_Documentation_TARGETS)
list(APPEND XercesC_Documentation_TARGETS doc-xml doc-style)
if(TARGET createdocs)
list(APPEND XercesC_Documentation_TARGETS createdocs)
endif()
if(TARGET createapidocs)
list(APPEND XercesC_Documentation_TARGETS createapidocs)
endif()
set_target_properties(${XercesC_Documentation_TARGETS} PROPERTIES FOLDER "XercesC/Documentation")
# XercesC Library
set(XercesC_Library_TARGETS)
list(APPEND XercesC_Library_TARGETS xerces-c-headers xerces-c-missing xerces-c)
if(TARGET genicu)
list(APPEND XercesC_Library_TARGETS genicu)
endif()
if(TARGET gencat)
list(APPEND XercesC_Library_TARGETS gencat)
endif()
set_target_properties(${XercesC_Library_TARGETS} PROPERTIES FOLDER "XercesC/Library")
# XercesC Tests
set(XercesC_Tests_TARGETS)
list(APPEND XercesC_Tests_TARGETS
DOMTest
DOMMemTest
Normalizer
RangeTest
DOMTraversalTest
DOMTypeInfoTest
EncodingTest
InitTermTest
MemHandlerTest
NetAccessorTest
XSerializerTest
XSTSHarness
XSValueTest)
if(TARGET ThreadTest)
list(APPEND XercesC_Tests_TARGETS ThreadTest)
endif()
if(TARGET Char16Test)
list(APPEND XercesC_Tests_TARGETS Char16Test)
endif()
set_target_properties(${XercesC_Tests_TARGETS} PROPERTIES FOLDER "XercesC/Tests")
# XercesC Samples
set(XercesC_Samples_TARGETS)
list(APPEND XercesC_Samples_TARGETS
CreateDOMDocument
DOMCount
DOMPrint
EnumVal
MemParse
PParse
PSVIWriter
Redirect
SAX2Count
SAX2Print
SAXCount
SAXPrint
SCMPrint
SEnumVal
StdInParse
XInclude)
set_target_properties(${XercesC_Samples_TARGETS} PROPERTIES FOLDER "XercesC/Samples")
# E57
if ( WIN32 )
set(USING_STATIC_XERCES OFF CACHE BOOL " " FORCE)
endif()
add_subdirectory (libE57Format)
set(libE57Format_TARGETS)
list(APPEND libE57Format_TARGETS E57Format)
set_target_properties(${libE57Format_TARGETS} PROPERTIES FOLDER "libE57Format")
# Json
set(JSON_BuildTests OFF CACHE BOOL " " FORCE)
add_subdirectory (Json)
set(Json_TARGETS)
set_target_properties(${Json_TARGETS} PROPERTIES FOLDER "Json")
# Half
macro(define_module name)
endmacro()
macro(buildsys_library target)
endmacro()
add_subdirectory (Half/half)
set(Half_TARGETS)
list(APPEND Half_TARGETS half)
set_target_properties(${Half_TARGETS} PROPERTIES FOLDER "Half")
# E57Converter
add_subdirectory("E57Converter")