Files
cmf-bindings/cpp/CMakeLists.txt
TomZ d459e3663a Copy CMF bindings from Bitcoin Classic here.
Notice I removed the code that handles with Message and with the uint256
class. They are not needed here.
2017-01-16 12:15:00 +01:00

25 lines
623 B
CMake

cmake_minimum_required(VERSION 2.8.8)
project(cmfbindings)
find_package(Boost COMPONENTS unit_test_framework REQUIRED)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules)
set(cmfbindings_SRCS
streaming/BufferPool.cpp
streaming/ConstBuffer.cpp
streaming/MessageBuilder.cpp
streaming/MessageParser.cpp
tests/TestCMF.cpp
)
add_definitions(-DBOOST_TEST_DYN_LINK)
include_directories(.)
add_executable(cmfbindings ${cmfbindings_SRCS})
set(cmfbindings_LIBS ${Boost_UNIT_TEST_FRAMEWORK_LIBRARY} ${CMAKE_DL_LIBS})
target_link_libraries(cmfbindings ${cmfbindings_LIBS})