* Build optimizations, simplify dependancy tree * Build optimizations, simplify dependancy tree
25 lines
647 B
CMake
25 lines
647 B
CMake
add_executable( cli_wallet main.cpp )
|
|
if( UNIX AND NOT APPLE )
|
|
set(rt_library rt )
|
|
endif()
|
|
|
|
find_package( Gperftools QUIET )
|
|
if( GPERFTOOLS_FOUND )
|
|
message( STATUS "Found gperftools; compiling cli_wallet with TCMalloc")
|
|
list( APPEND PLATFORM_SPECIFIC_LIBS tcmalloc )
|
|
endif()
|
|
|
|
target_link_libraries( cli_wallet
|
|
PRIVATE graphene_app graphene_egenesis_brief graphene_wallet ${PLATFORM_SPECIFIC_LIBS} )
|
|
|
|
if(MSVC)
|
|
set_source_files_properties( main.cpp PROPERTIES COMPILE_FLAGS "/bigobj" )
|
|
endif(MSVC)
|
|
|
|
install( TARGETS
|
|
cli_wallet
|
|
|
|
RUNTIME DESTINATION bin
|
|
LIBRARY DESTINATION lib
|
|
ARCHIVE DESTINATION lib
|
|
)
|