2015-06-08 15:50:35 +00:00
|
|
|
file(GLOB COMMON_SOURCES "common/*.cpp")
|
|
|
|
|
|
2015-06-23 19:18:25 +00:00
|
|
|
find_package( Gperftools QUIET )
|
|
|
|
|
if( GPERFTOOLS_FOUND )
|
|
|
|
|
message( STATUS "Found gperftools; compiling tests with TCMalloc")
|
|
|
|
|
list( APPEND PLATFORM_SPECIFIC_LIBS tcmalloc )
|
|
|
|
|
endif()
|
|
|
|
|
|
2015-06-08 15:50:35 +00:00
|
|
|
file(GLOB UNIT_TESTS "tests/*.cpp")
|
|
|
|
|
add_executable( chain_test ${UNIT_TESTS} ${COMMON_SOURCES} )
|
2015-06-23 19:18:25 +00:00
|
|
|
target_link_libraries( chain_test graphene_chain graphene_app graphene_account_history fc ${PLATFORM_SPECIFIC_LIBS} )
|
2015-06-08 15:50:35 +00:00
|
|
|
|
|
|
|
|
file(GLOB PERFORMANCE_TESTS "performance/*.cpp")
|
|
|
|
|
add_executable( performance_test ${PERFORMANCE_TESTS} ${COMMON_SOURCES} )
|
2015-06-23 19:18:25 +00:00
|
|
|
target_link_libraries( performance_test graphene_chain graphene_app graphene_account_history fc ${PLATFORM_SPECIFIC_LIBS} )
|
2015-06-08 15:50:35 +00:00
|
|
|
|
|
|
|
|
file(GLOB BENCH_MARKS "benchmarks/*.cpp")
|
|
|
|
|
add_executable( chain_bench ${BENCH_MARKS} ${COMMON_SOURCES} )
|
2015-06-23 19:18:25 +00:00
|
|
|
target_link_libraries( chain_bench graphene_chain graphene_account_history graphene_time fc ${PLATFORM_SPECIFIC_LIBS} )
|
2015-06-08 15:50:35 +00:00
|
|
|
|
|
|
|
|
file(GLOB APP_SOURCES "app/*.cpp")
|
|
|
|
|
add_executable( app_test ${APP_SOURCES} )
|
2015-06-23 19:18:25 +00:00
|
|
|
target_link_libraries( app_test graphene_account_history graphene_app graphene_net graphene_chain graphene_time fc ${PLATFORM_SPECIFIC_LIBS} )
|
2015-06-08 15:50:35 +00:00
|
|
|
|
|
|
|
|
file(GLOB INTENSE_SOURCES "intense/*.cpp")
|
|
|
|
|
add_executable( intense_test ${INTENSE_SOURCES} ${COMMON_SOURCES} )
|
2015-06-23 19:18:25 +00:00
|
|
|
target_link_libraries( intense_test graphene_chain graphene_app graphene_account_history fc ${PLATFORM_SPECIFIC_LIBS} )
|