Skip to content

XMaxPlatform/xmax-mainchain

Repository files navigation

XMax - Next Generation Decentralized Application Platform

Official XMax main blockchain source code repository.

Building XMax Platform

Supported Platforms

  1. Windows 10
  2. CentOS 7 (Coming Soon)
  3. Use boost in CMake target
  4. Use MongoDB in CMake target

Use boost in CMake target

Add required components libs

Add the required component to the BOOST_REUIQRED_COMPONENTS variable of the CMakeLists.txt in the xmax-mainchain root directory. For example:

set(BOOST_REUIQRED_COMPONENTS)
list(APPEND BOOST_REUIQRED_COMPONENTS filesystem)

Call boost cmake macro

In your target project CMakeLists.txt file, add the ${Boost_INCLUDE_DIR} to the build target's include directory and add the ${Boost_LIBRARIES} to the link properties. For example:

target_include_directories( ${current_lib_name} PUBLIC "include"  "${Boost_INCLUDE_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}" )

target_link_libraries( ${current_lib_name} ${Boost_LIBRARIES})

Use MongoDB in CMake target

Add include directories to the target

target_include_directories( ${current_lib_name} 
	PUBLIC  "${MongoDB_INCLUDE_DIR}"
    # Other include dirs...
    )

Add link MongoDB libraries

target_link_libraries( ${current_lib_name}
	${MongoDB_LIBRARIES}
    # Other link libraries
)

About

Xmax main blockchain system

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 8