2018-07-20 11:14:25 +03:00
|
|
|
CMAKE_MINIMUM_REQUIRED(VERSION 3.0.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-08-28 10:44:51 +03:00
|
|
|
|
2018-09-06 10:34:43 +03:00
|
|
|
EXECUTE_PROCESS(
|
2018-09-06 20:36:10 +03:00
|
|
|
COMMAND ${DOTNET_EXE} help # to avoid "FIRST RUN EXPERIENCE" leaking into our version string
|
2018-09-06 10:34:43 +03:00
|
|
|
COMMAND ${DOTNET_EXE} run -p ${CMAKE_CURRENT_LIST_DIR}/tools/versioning/versioning.csproj
|
|
|
|
OUTPUT_VARIABLE TRINITY_VERSION OUTPUT_STRIP_TRAILING_WHITESPACE)
|
|
|
|
SET(TRINITY_VERSION "2.0.${TRINITY_VERSION}")
|
2018-09-06 20:23:43 +03:00
|
|
|
MESSAGE("-- GraphEngine version is now ${TRINITY_VERSION}")
|
2018-09-06 10:34:43 +03:00
|
|
|
|
|
|
|
PROJECT(GraphEngine VERSION ${TRINITY_VERSION} LANGUAGES CXX)
|
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)
|
|
|
|
|
|
|
|
SET(TRINITY_REPO_ROOT ${CMAKE_CURRENT_LIST_DIR})
|
|
|
|
SET(TRINITY_OUTPUT_DIR ${TRINITY_REPO_ROOT}/bin)
|
|
|
|
SET(TRINITY_TEST_DIR ${TRINITY_REPO_ROOT}/tests)
|
2018-07-18 13:29:44 +03:00
|
|
|
SET(TRINITY_SRC_DIR ${TRINITY_REPO_ROOT}/src)
|
2018-07-21 14:10:18 +03:00
|
|
|
|
2018-08-28 14:21:32 +03:00
|
|
|
SET(XPLAT_LIB_DIR ${TRINITY_REPO_ROOT}/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)
|
2018-09-05 17:05:44 +03:00
|
|
|
ADD_COMPILE_OPTIONS(/volatile:iso /EHsc /fp:except- /Zi /Gy /W3 /nologo /MP)
|
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")
|
2018-07-18 10:03:44 +03:00
|
|
|
ELSEIF(UNIX)
|
2018-07-20 11:14:25 +03:00
|
|
|
ADD_COMPILE_OPTIONS(-fpermissive -Wall -Wno-write-strings -Wno-unknown-pragmas -pthread)
|
2018-07-18 10:03:44 +03:00
|
|
|
ELSE()
|
|
|
|
MESSAGE(FATAL_ERROR "Unsupported platform")
|
|
|
|
ENDIF()
|
|
|
|
|
2018-07-17 14:00:01 +03:00
|
|
|
ADD_SUBDIRECTORY(src/Trinity.TSL)
|
|
|
|
ADD_SUBDIRECTORY(src/Trinity.C)
|
2018-08-02 12:33:11 +03:00
|
|
|
ADD_SUBDIRECTORY(src/Trinity.Core)
|
2018-08-07 18:49:02 +03:00
|
|
|
ADD_SUBDIRECTORY(src/Modules/LIKQ)
|
|
|
|
ADD_SUBDIRECTORY(src/Modules/GraphEngine.Storage.Composite)
|
|
|
|
ADD_SUBDIRECTORY(src/Modules/GraphEngine.Client)
|
|
|
|
ADD_SUBDIRECTORY(src/Modules/GraphEngine.DynamicCluster)
|
2018-08-02 12:33:11 +03:00
|
|
|
|
2018-08-03 10:10:45 +03:00
|
|
|
ADD_MSBUILD(
|
|
|
|
src/Modules/GraphEngine.ServiceFabric/GraphEngine.ServiceFabric.sln
|
|
|
|
PACKAGE
|
|
|
|
GraphEngine.ServiceFabric.Infrastructure
|
|
|
|
GraphEngine.ServiceFabric.Remoting
|
|
|
|
DEPENDS
|
|
|
|
GraphEngine.Core
|
|
|
|
GraphEngine.Client
|
|
|
|
GraphEngine.Storage.Composite
|
|
|
|
GraphEngine.DynamicCluster
|
2018-08-07 18:49:02 +03:00
|
|
|
GraphEngine.Azure.BlobStorage
|
2018-08-03 10:10:45 +03:00
|
|
|
X64
|
|
|
|
CONFIG RelSkipSFApp
|
2018-09-03 06:31:15 +03:00
|
|
|
VERSION ${TRINITY_VERSION}
|
2018-08-03 10:10:45 +03:00
|
|
|
)
|
2018-08-02 12:33:11 +03:00
|
|
|
|
2018-08-02 14:50:34 +03:00
|
|
|
# ADD_DOTNET(
|
|
|
|
# src/GraphEngine.DataImporter/GraphEngine.DataImporter.sln
|
|
|
|
# PACKAGE GraphEngine.DataImporter
|
|
|
|
# DEPENDS GraphEngine.Core)
|
2018-08-28 10:44:51 +03:00
|
|
|
|