|
| 1 | +set(SOURCES |
| 2 | + clsid.cpp |
| 3 | + cpuid.cpp |
| 4 | + crc32.cpp |
| 5 | + doug_lea_allocator.cpp |
| 6 | + dump_string.cpp |
| 7 | +# FileSystem.cpp |
| 8 | +# FileSystem_borland.cpp |
| 9 | +## FileSystem_posix.cpp |
| 10 | +# file_stream_reader.cpp |
| 11 | + FMesh.cpp |
| 12 | + FS.cpp |
| 13 | + FTimer.cpp |
| 14 | + LocatorAPI.cpp |
| 15 | + LocatorAPI_auth.cpp |
| 16 | + LocatorAPI_defs.cpp |
| 17 | + log.cpp |
| 18 | + LzHuf.cpp |
| 19 | + memory_allocation_stats.cpp |
| 20 | + memory_monitor.cpp |
| 21 | + memory_usage.cpp |
| 22 | + Model.cpp |
| 23 | + NET_utils.cpp |
| 24 | + os_clipboard.cpp |
| 25 | + ppmd_compressor.cpp |
| 26 | + stdafx.cpp |
| 27 | +# stream_reader.cpp |
| 28 | + string_concatenations.cpp |
| 29 | + xrCore.cpp |
| 30 | + ModuleLookup.cpp |
| 31 | + xrDebug.cpp |
| 32 | + xrMemory.cpp |
| 33 | +# xrMemory_align.cpp |
| 34 | + xrMemory_debug.cpp |
| 35 | + xrMemory_POOL.cpp |
| 36 | +# xrMemory_subst_borland.cpp |
| 37 | +# xrMemory_subst_msvc.cpp |
| 38 | +## xrMemory_subst_posix.cpp |
| 39 | + xrsharedmem.cpp |
| 40 | + xrstring.cpp |
| 41 | + Xr_ini.cpp |
| 42 | + xr_shared.cpp |
| 43 | + xr_trims.cpp |
| 44 | + _compressed_normal.cpp |
| 45 | + _math.cpp |
| 46 | + _sphere.cpp |
| 47 | + _std_extensions.cpp |
| 48 | +) |
| 49 | + |
| 50 | +set(HEADERS |
| 51 | + buffer_vector.h |
| 52 | + buffer_vector_inline.h |
| 53 | + cdecl_cast.hpp |
| 54 | + clsid.h |
| 55 | + Coder.hpp |
| 56 | + compression_ppmd_stream.h |
| 57 | + compression_ppmd_stream_inline.h |
| 58 | + cpuid.h |
| 59 | + doug_lea_allocator.h |
| 60 | + dump_string.h |
| 61 | + fastdelegate.h |
| 62 | + file_stream_reader.h |
| 63 | + FixedMap.h |
| 64 | + FixedSet.h |
| 65 | + FixedVector.h |
| 66 | + FMesh.hpp |
| 67 | + FS.h |
| 68 | + FS_impl.h |
| 69 | + FS_internal.h |
| 70 | + FTimer.h |
| 71 | + intrusive_ptr.h |
| 72 | + intrusive_ptr_inline.h |
| 73 | + LocatorAPI.h |
| 74 | + LocatorAPI_defs.h |
| 75 | + log.h |
| 76 | + lzhuf.h |
| 77 | + memory_allocator_options.h |
| 78 | + memory_monitor.h |
| 79 | + net_utils.h |
| 80 | + os_clipboard.h |
| 81 | + PPMd.h |
| 82 | + PPMdType.h |
| 83 | + ppmd_compressor.h |
| 84 | + resource.h |
| 85 | + stdafx.h |
| 86 | + Stream_Reader.h |
| 87 | + stream_reader_inline.h |
| 88 | + string_concatenations.h |
| 89 | + string_concatenations_inline.h |
| 90 | + SubAlloc.hpp |
| 91 | + vector.h |
| 92 | + xrCore.h |
| 93 | + ModuleLookup.hpp |
| 94 | + xrDebug.h |
| 95 | + xrDebug_macros.h |
| 96 | + xrMemory.h |
| 97 | + xrMemory_align.h |
| 98 | + xrMemory_POOL.h |
| 99 | + xrMemory_pure.h |
| 100 | +# xrMemory_subst_borland.h |
| 101 | +# xrMemory_subst_msvc.h |
| 102 | +## xrMemory_subst_posix.h |
| 103 | + xrPool.h |
| 104 | + xrsharedmem.h |
| 105 | + xrstring.h |
| 106 | + xr_ini.h |
| 107 | + xr_resource.h |
| 108 | + xr_shared.h |
| 109 | + xr_trims.h |
| 110 | + _bitwise.h |
| 111 | + _color.h |
| 112 | + _compressed_normal.h |
| 113 | + _cylinder.h |
| 114 | + _fbox.h |
| 115 | + _fbox2.h |
| 116 | + _flags.h |
| 117 | + _math.h |
| 118 | + _matrix.h |
| 119 | + _matrix33.h |
| 120 | + _obb.h |
| 121 | + _plane.h |
| 122 | + _plane2.h |
| 123 | + _quaternion.h |
| 124 | + _random.h |
| 125 | + _rect.h |
| 126 | + _sphere.h |
| 127 | + _std_extensions.h |
| 128 | + _stl_extensions.h |
| 129 | + _types.h |
| 130 | + _vector2.h |
| 131 | + _vector3d.h |
| 132 | + _vector3d_ext.h |
| 133 | + _vector4.h |
| 134 | +) |
| 135 | + |
| 136 | +set(ANIMATION_SOURCES |
| 137 | + Animation/Bone.cpp |
| 138 | + Animation/Envelope.cpp |
| 139 | + Animation/interp.cpp |
| 140 | + Animation/Motion.cpp |
| 141 | + Animation/SkeletonMotions.cpp |
| 142 | +) |
| 143 | + |
| 144 | +set(ANIMATION_HEADERS |
| 145 | + Animation/Bone.hpp |
| 146 | + Animation/Envelope.hpp |
| 147 | + Animation/Motion.hpp |
| 148 | + Animation/SkeletonMotionDefs.hpp |
| 149 | + Animation/SkeletonMotions.hpp |
| 150 | +) |
| 151 | + |
| 152 | +set(COMPRESSION_SOURCES |
| 153 | + Compression/lzo_compressor.cpp |
| 154 | + Compression/rt_compressor.cpp |
| 155 | + Compression/rt_compressor9.cpp |
| 156 | +) |
| 157 | + |
| 158 | +set(COMPRESSION_HEADERS |
| 159 | + Compression/lzo_compressor.h |
| 160 | + Compression/rt_compressor.h |
| 161 | +) |
| 162 | + |
| 163 | +set(CONTAINERS_HEADER |
| 164 | + Containers/AssociativeVector.hpp |
| 165 | + Containers/AssociativeVectorComparer.hpp |
| 166 | +) |
| 167 | + |
| 168 | +set(CRYPTO_SOURCES |
| 169 | + Crypto/crypto.cpp |
| 170 | + Crypto/xr_dsa.cpp |
| 171 | + Crypto/xr_dsa_signer.cpp |
| 172 | + Crypto/xr_dsa_verifyer.cpp |
| 173 | + Crypto/xr_sha.cpp |
| 174 | +) |
| 175 | + |
| 176 | +set(CRYPTO_HEADERS |
| 177 | + Crypto/crypto.h |
| 178 | + Crypto/xr_dsa.h |
| 179 | + Crypto/xr_dsa_signer.h |
| 180 | + Crypto/xr_dsa_verifyer.h |
| 181 | + Crypto/xr_sha.h |
| 182 | +) |
| 183 | + |
| 184 | +set(DEBUG_SOURCES |
| 185 | + #Debug/dxerr.cpp |
| 186 | + #Debug/MiniDump.cpp |
| 187 | + #Debug/StackTrace.cpp |
| 188 | +) |
| 189 | + |
| 190 | +set(DEBUG_HEADERS |
| 191 | + #Debug/dxerr.h |
| 192 | + #Debug/DXGetErrorDescription.inl |
| 193 | + #Debug/MiniDump.h |
| 194 | + #Debug/StackTrace.h |
| 195 | + #Debug/SymbolEngine.h |
| 196 | + #Debug/DXGetErrorString.inl |
| 197 | +) |
| 198 | + |
| 199 | +set(IO_SOURCES |
| 200 | +# IO/DirectoryLookup_posix.cpp |
| 201 | +# IO/DirectoryLookup_win.cpp |
| 202 | +) |
| 203 | + |
| 204 | +set(IO_HEADERS |
| 205 | +# IO/DirectoryLookup.hpp |
| 206 | +) |
| 207 | + |
| 208 | +set(MATH_SOURCES |
| 209 | + Math/PLC_SSE.cpp |
| 210 | +# Math/Skin4W_MT.cpp |
| 211 | +# Math/SkinXW_SSE.cpp |
| 212 | + Math/MathUtil.cpp |
| 213 | +) |
| 214 | + |
| 215 | +set(MATH_HEADERS |
| 216 | + Math/PLC_SSE.hpp |
| 217 | + Math/Random32.hpp |
| 218 | + Math/Skin4W_MT.hpp |
| 219 | + Math/SkinXW_SSE.hpp |
| 220 | + Math/MathUtil.hpp |
| 221 | +) |
| 222 | + |
| 223 | +set(MEDIA_SOURCES |
| 224 | + Media/Image.cpp |
| 225 | +) |
| 226 | + |
| 227 | +set(MEDIA_HEADERS |
| 228 | + Media/Image.hpp |
| 229 | +) |
| 230 | + |
| 231 | +set(POST_PROCESS_SOURCES |
| 232 | + PostProcess/PostProcess.cpp |
| 233 | + PostProcess/PPInfo.cpp |
| 234 | +) |
| 235 | + |
| 236 | +set(POST_PROCESS_HEADERS |
| 237 | + PostProcess/PostProcess.hpp |
| 238 | + PostProcess/PPInfo.hpp |
| 239 | +) |
| 240 | + |
| 241 | +#ptmalloc3/malloc.c |
| 242 | +#ptmalloc3/sysdeps/win32/win32.c |
| 243 | + |
| 244 | +#ptmalloc3/malloc-2.8.3.h |
| 245 | + |
| 246 | +set(TEXT_SOURCES |
| 247 | + Text/MbHelpers.cpp |
| 248 | +) |
| 249 | + |
| 250 | +set(TEXT_HEADERS |
| 251 | + Text/MbHelpers.h |
| 252 | +) |
| 253 | + |
| 254 | +set(THREADING_SOURCES |
| 255 | +# Threading/Event.cpp |
| 256 | +# Threading/ttapi.cpp |
| 257 | + Threading/Lock.cpp |
| 258 | +) |
| 259 | + |
| 260 | +set(THREADING_HEADERS |
| 261 | + Threading/Event.hpp |
| 262 | + Threading/ttapi.h |
| 263 | + Threading/Lock.hpp |
| 264 | +) |
| 265 | + |
| 266 | +set(XML_SOURCES |
| 267 | + XML/tinystr.cpp |
| 268 | + XML/tinyxml.cpp |
| 269 | + XML/tinyxmlerror.cpp |
| 270 | + XML/tinyxmlparser.cpp |
| 271 | + XML/XMLDocument.cpp |
| 272 | +) |
| 273 | + |
| 274 | +set(XML_HEADERS |
| 275 | + XML/tinystr.h |
| 276 | + XML/tinyxml.h |
| 277 | + XML/XMLDocument.hpp |
| 278 | +) |
| 279 | + |
| 280 | +set(COMMON_HEADERS |
| 281 | + ../Common/GUID.hpp |
| 282 | + ../Common/LevelStructure.hpp |
| 283 | + ../Common/Noncopyable.hpp |
| 284 | + ../Common/object_broker.h |
| 285 | + ../Common/object_cloner.h |
| 286 | + ../Common/object_comparer.h |
| 287 | + ../Common/object_destroyer.h |
| 288 | + ../Common/object_interfaces.h |
| 289 | + ../Common/object_loader.h |
| 290 | + ../Common/object_saver.h |
| 291 | + ../Common/object_type_traits.h |
| 292 | + ../Common/Util.hpp |
| 293 | +# ../Common/_d3d_extensions.h |
| 294 | +) |
| 295 | + |
| 296 | +include_directories("." ${CMAKE_SOURCE_DIR} ${SDL2_INCLUDE_DIR} ${OPENSSL_INCLUDE_DIR} ${LZO_INCLUDE_DIR}) |
| 297 | + |
| 298 | +add_library(xrCore SHARED ${SOURCES} ${HEADERS} |
| 299 | + ${ANIMATION_SOURCES} |
| 300 | + ${CRYPTO_SOURCES} |
| 301 | + ${DEBUG_SOURCES} |
| 302 | + ${COMPRESSION_SOURCES} |
| 303 | + ${MATH_SOURCES} |
| 304 | + ${MEDIA_SOURCES} |
| 305 | + ${POST_PROCESS_SOURCES} |
| 306 | + ${TEXT_SOURCES} |
| 307 | + ${THREADING_SOURCES} |
| 308 | + ${IO_SOURCES} |
| 309 | +) |
| 310 | + |
| 311 | +set_target_properties(xrCore PROPERTIES PREFIX "") |
| 312 | +target_link_libraries(xrCore ${SDL2_LIBRARY} ${OPENSSL_LIBRARIES} ${LZO_LIBRARIES}) |
0 commit comments