2023-08-08 10:46:11 +03:00
|
|
|
CMAKE_MINIMUM_REQUIRED(VERSION 3.16.0)
|
2018-07-18 10:03:44 +03:00
|
|
|
|
2018-08-28 10:44:51 +03:00
|
|
|
LIST(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake")
|
2018-09-03 10:31:29 +03:00
|
|
|
FIND_PACKAGE(Dotnet 2.0 REQUIRED)
|
2018-08-28 14:21:32 +03:00
|
|
|
INCLUDE(PostBuild)
|
2018-09-08 14:20:40 +03:00
|
|
|
INCLUDE(TrinityVersion)
|
2018-09-06 10:34:43 +03:00
|
|
|
|
2018-11-19 18:30:45 +03:00
|
|
|
GEN_DOTNET_PROPS(${CMAKE_CURRENT_LIST_DIR}/Directory.Build.props PACKAGE_VERSION ${TRINITY_VERSION})
|
|
|
|
|
2018-09-06 10:34:43 +03:00
|
|
|
PROJECT(GraphEngine VERSION ${TRINITY_VERSION} LANGUAGES CXX)
|
2018-11-09 07:39:22 +03:00
|
|
|
ENABLE_TESTING()
|
2018-08-02 14:50:34 +03:00
|
|
|
|
2018-07-18 10:03:44 +03:00
|
|
|
SET(CMAKE_CXX_STANDARD 14)
|
|
|
|
SET(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
|
|
SET(CMAKE_CXX_EXTENSIONS OFF)
|
|
|
|
|
2018-09-07 11:51:42 +03:00
|
|
|
SET(XPLAT_LIB_DIR ${CMAKE_CURRENT_LIST_DIR}/lib)
|
2018-09-03 11:58:12 +03:00
|
|
|
SET_OUTPUT_DIRECTORY(${CMAKE_BINARY_DIR})
|
|
|
|
DOTNET_REGISTER_LOCAL_REPOSITORY("Graph Engine OSS Local" "${CMAKE_BINARY_DIR}")
|
2018-07-21 14:10:18 +03:00
|
|
|
|
2018-07-18 10:03:44 +03:00
|
|
|
IF(WIN32)
|
2022-06-19 17:58:29 +03:00
|
|
|
ADD_COMPILE_OPTIONS(/volatile:iso /EHsc /fp:except- /Zi /Gy /W3 /nologo /MP /utf-8 /wd4267)
|
2018-09-04 17:48:18 +03:00
|
|
|
SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} /DEBUG:FULL")
|
|
|
|
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /DEBUG:FULL")
|
2022-06-18 12:12:49 +03:00
|
|
|
ADD_DEFINITIONS(-D_CRT_SECURE_NO_WARNINGS)
|
2018-07-18 10:03:44 +03:00
|
|
|
ELSEIF(UNIX)
|
2022-06-21 08:13:53 +03:00
|
|
|
ADD_COMPILE_OPTIONS(-fpermissive -Wno-write-strings -Wno-unknown-pragmas -Wno-attributes -Wno-unused-result -pthread)
|
2018-07-18 10:03:44 +03:00
|
|
|
ELSE()
|
|
|
|
MESSAGE(FATAL_ERROR "Unsupported platform")
|
|
|
|
ENDIF()
|
|
|
|
|
2022-06-14 12:59:57 +03:00
|
|
|
# Graph Engine Core
|
2018-07-17 14:00:01 +03:00
|
|
|
ADD_SUBDIRECTORY(src/Trinity.C)
|
2018-11-09 11:49:21 +03:00
|
|
|
ADD_SUBDIRECTORY(src/Trinity.C.UnitTest)
|
2018-09-07 11:51:42 +03:00
|
|
|
ADD_SUBDIRECTORY(src/Trinity.TSL)
|
2018-08-02 12:33:11 +03:00
|
|
|
ADD_SUBDIRECTORY(src/Trinity.Core)
|
2022-06-14 12:55:28 +03:00
|
|
|
|
2022-06-14 12:59:57 +03:00
|
|
|
# LIKQ: Language Integrated Knowledge Query
|
|
|
|
ADD_SUBDIRECTORY(src/Modules/LIKQ)
|
2022-06-14 11:03:45 +03:00
|
|
|
|
|
|
|
ADD_DOTNET(
|
|
|
|
src/Modules/DataImporter/GraphEngine.DataImporter.sln
|
|
|
|
PACKAGE GraphEngine.DataImporter
|
|
|
|
DEPENDS GraphEngine.Core)
|
|
|
|
|
|
|
|
# The following Modules are Unsupported, provided as-is.
|
|
|
|
|
2022-06-14 12:59:57 +03:00
|
|
|
# ADD_SUBDIRECTORY(src/Modules/Unsupported/Storage.Composite)
|
|
|
|
# ADD_SUBDIRECTORY(src/Modules/Unsupported/Client)
|
|
|
|
# ADD_SUBDIRECTORY(src/Modules/Unsupported/DynamicCluster)
|
2022-06-14 11:03:45 +03:00
|
|
|
# ADD_SUBDIRECTORY(src/Modules/Unsupported/VSExtension)
|
2018-08-02 12:33:11 +03:00
|
|
|
|
2022-05-24 08:06:46 +03:00
|
|
|
# ADD_MSBUILD(
|
2022-06-14 11:03:45 +03:00
|
|
|
# src/Modules/Unsupported/ServiceFabric/GraphEngine.ServiceFabric.sln
|
2022-05-24 08:06:46 +03:00
|
|
|
# PACKAGE
|
|
|
|
# GraphEngine.ServiceFabric.Infrastructure
|
|
|
|
# GraphEngine.ServiceFabric.Remoting
|
|
|
|
# DEPENDS
|
|
|
|
# GraphEngine.Core
|
|
|
|
# GraphEngine.Client
|
|
|
|
# GraphEngine.Storage.Composite
|
|
|
|
# GraphEngine.DynamicCluster
|
|
|
|
# GraphEngine.Azure.BlobStorage
|
|
|
|
# X64
|
|
|
|
# CONFIG RelSkipSFApp
|
|
|
|
# VERSION ${TRINITY_VERSION}
|
|
|
|
# )
|