GraphEngine/CMakeLists.txt

59 строки
1.8 KiB
CMake
Исходник Обычный вид История

2018-07-20 11:14:25 +03:00
CMAKE_MINIMUM_REQUIRED(VERSION 3.0.0)
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)
INCLUDE(TrinityVersion)
PROJECT(GraphEngine VERSION ${TRINITY_VERSION} LANGUAGES CXX)
2018-08-02 14:50:34 +03:00
SET(CMAKE_CXX_STANDARD 14)
SET(CMAKE_CXX_STANDARD_REQUIRED ON)
SET(CMAKE_CXX_EXTENSIONS OFF)
SET(XPLAT_LIB_DIR ${CMAKE_CURRENT_LIST_DIR}/lib)
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
IF(WIN32)
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")
ELSEIF(UNIX)
2018-07-20 11:14:25 +03:00
ADD_COMPILE_OPTIONS(-fpermissive -Wall -Wno-write-strings -Wno-unknown-pragmas -pthread)
ELSE()
MESSAGE(FATAL_ERROR "Unsupported platform")
ENDIF()
2018-07-17 14:00:01 +03:00
ADD_SUBDIRECTORY(src/Trinity.C)
ADD_SUBDIRECTORY(src/Trinity.TSL)
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
VERSION ${TRINITY_VERSION}
2018-08-03 10:10:45 +03:00
)
2018-08-02 12:33:11 +03:00
ADD_SUBDIRECTORY(src/Trinity.VSExtension)
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