CMakeLists.txt 933 字节
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

             get_config.cpp

13
             block_log.cpp
14
             BlockchainConfiguration.cpp
N
Nathan Hourt 已提交
15

16 17
             types.cpp

N
Nathan Hourt 已提交
18 19 20
             ${HEADERS}
           )

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

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

INSTALL( TARGETS
   eos_chain

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