forked from tokenika/eosfactory
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcommon.cmake
36 lines (26 loc) · 1.26 KB
/
common.cmake
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
message(STATUS
"common eosfactory settings: ///////////////////////////////////////////////////////" )
set( EOS_FACTORY_EOS eos )
message( STATUS "CMAKE_SYSTEM_NAME: ${CMAKE_SYSTEM_NAME}" )
if( NOT DEFINED ENV{EOSIO_SOURCE_DIR} )
message( FATAL_ERROR "
EOSIO_SOURCE_DIR environment variable has to be set, e.g. \
'EOSIO_SOURCE_DIR E:/Workspaces/EOS/eos/', for Windows file system." )
endif()
set( EOSIO_SOURCE_DIR "$ENV{EOSIO_SOURCE_DIR}" )
message( STATUS "EOSIO_SOURCE_DIR: ${EOSIO_SOURCE_DIR}" )
set ( EOSIO_CONTEXT_DIR "${CMAKE_CURRENT_LIST_DIR}" )
message( STATUS "EOSIO_CONTEXT_DIR: ${EOSIO_CONTEXT_DIR}" )
set( CMAKE_INSTALL_PREFIX "${EOSIO_CONTEXT_DIR}/install/ubuntu" )
#set( EOSIO_BINARY_DIR "${EOSIO_CONTEXT_DIR}/${EOS_FACTORY_EOS}/build" )
set( EOSIO_BINARY_DIR "${EOSIO_SOURCE_DIR}/build" )
message( STATUS "EOSIO_BINARY_DIR: ${EOSIO_BINARY_DIR}" )
message( STATUS "CMAKE_INSTALL_PREFIX: ${CMAKE_INSTALL_PREFIX}" )
# set( CMAKE_CXX_STANDARD 14 )
# set( CXX_STANDARD_REQUIRED ON)
# message( STATUS "CMAKE_CXX_STANDARD: ${CMAKE_CXX_STANDARD}" )
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14" )
set( CMAKE_CXX_STANDARD_REQUIRED ON )
set( CMAKE_BUILD_TYPE Debug )
message( STATUS
"//////////////////////////////////////////////////////////////////////////////" )