modified: libraries/app/impacted.cpp modified: libraries/chain/db_init.cpp modified: libraries/chain/db_maint.cpp modified: libraries/chain/game_object.cpp modified: libraries/chain/include/graphene/chain/protocol/operations.hpp modified: libraries/chain/include/graphene/chain/protocol/tournament.hpp modified: libraries/chain/protocol/tournament.cpp modified: libraries/chain/tournament_object.cpp modified: libraries/wallet/wallet.cpp modified: programs/witness_node/main.cpp modified: tests/CMakeLists.txt modified: tests/common/database_fixture.cpp new file: tests/tournament/tournament_tests.cpp
36 lines
1.9 KiB
CMake
36 lines
1.9 KiB
CMake
file(GLOB COMMON_SOURCES "common/*.cpp")
|
|
|
|
find_package( Gperftools QUIET )
|
|
if( GPERFTOOLS_FOUND )
|
|
message( STATUS "Found gperftools; compiling tests with TCMalloc")
|
|
list( APPEND PLATFORM_SPECIFIC_LIBS tcmalloc )
|
|
endif()
|
|
|
|
file(GLOB UNIT_TESTS "tests/*.cpp")
|
|
add_executable( chain_test ${UNIT_TESTS} ${COMMON_SOURCES} )
|
|
target_link_libraries( chain_test graphene_chain graphene_app graphene_account_history graphene_egenesis_none fc ${PLATFORM_SPECIFIC_LIBS} )
|
|
if(MSVC)
|
|
set_source_files_properties( tests/serialization_tests.cpp PROPERTIES COMPILE_FLAGS "/bigobj" )
|
|
endif(MSVC)
|
|
|
|
file(GLOB PERFORMANCE_TESTS "performance/*.cpp")
|
|
add_executable( performance_test ${PERFORMANCE_TESTS} ${COMMON_SOURCES} )
|
|
target_link_libraries( performance_test graphene_chain graphene_app graphene_account_history graphene_egenesis_none fc ${PLATFORM_SPECIFIC_LIBS} )
|
|
|
|
file(GLOB TOURNAMENT_TESTS "tournament/*.cpp")
|
|
add_executable( tournament_test ${TOURNAMENT_TESTS} ${COMMON_SOURCES} )
|
|
target_link_libraries( tournament_test graphene_chain graphene_app graphene_account_history graphene_egenesis_none fc ${PLATFORM_SPECIFIC_LIBS} )
|
|
|
|
file(GLOB BENCH_MARKS "benchmarks/*.cpp")
|
|
add_executable( chain_bench ${BENCH_MARKS} ${COMMON_SOURCES} )
|
|
target_link_libraries( chain_bench graphene_chain graphene_app graphene_account_history graphene_time graphene_egenesis_none fc ${PLATFORM_SPECIFIC_LIBS} )
|
|
|
|
file(GLOB APP_SOURCES "app/*.cpp")
|
|
add_executable( app_test ${APP_SOURCES} )
|
|
target_link_libraries( app_test graphene_app graphene_account_history graphene_net graphene_chain graphene_time graphene_egenesis_none fc ${PLATFORM_SPECIFIC_LIBS} )
|
|
|
|
file(GLOB INTENSE_SOURCES "intense/*.cpp")
|
|
add_executable( intense_test ${INTENSE_SOURCES} ${COMMON_SOURCES} )
|
|
target_link_libraries( intense_test graphene_chain graphene_app graphene_account_history graphene_egenesis_none fc ${PLATFORM_SPECIFIC_LIBS} )
|
|
|
|
add_subdirectory( generate_empty_blocks )
|