CMakeLists.txt 940 字节
Newer Older
N
Nathan Hourt 已提交
1 2 3 4
file(GLOB HEADERS "include/eos/chain/*.hpp")

## SORT .cpp by most likely to change / break compile
add_library( eos_chain
5
             chain_controller.cpp
N
Nathan Hourt 已提交
6 7
             fork_database.cpp

N
Nathan Hourt 已提交
8 9
             transaction.cpp
             block.cpp
N
Nathan Hourt 已提交
10 11 12 13

             genesis_state.cpp
             get_config.cpp

14
             block_log.cpp
15
             BlockchainConfiguration.cpp
N
Nathan Hourt 已提交
16 17 18 19

             ${HEADERS}
           )

20
target_link_libraries( eos_chain fc chainbase eos_types wren )
N
Nathan Hourt 已提交
21 22 23 24
target_include_directories( eos_chain
                            PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include" "${CMAKE_CURRENT_BINARY_DIR}/include" )

if(MSVC)
25
  set_source_files_properties( db_init.cpp db_block.cpp database.cpp block_log.cpp PROPERTIES COMPILE_FLAGS "/bigobj" )
N
Nathan Hourt 已提交
26 27 28 29 30 31 32 33 34 35
endif(MSVC)

INSTALL( TARGETS
   eos_chain

   RUNTIME DESTINATION bin
   LIBRARY DESTINATION lib
   ARCHIVE DESTINATION lib
)
INSTALL( FILES ${HEADERS} DESTINATION "include/eos/chain" )