mirror of
https://git.wownero.com/wowlet/wownero-seed.git
synced 2024-08-15 01:03:29 +00:00
build: Re-add demo
Signed-off-by: Matt Smith <matt@offtopica.uk>
This commit is contained in:
parent
a4d800fc17
commit
4674ef09b6
2 changed files with 9 additions and 1 deletions
|
@ -2,6 +2,8 @@
|
|||
|
||||
cmake_minimum_required(VERSION 3.13)
|
||||
|
||||
option(MONERO_SEED_DEMO "Build a demo executable for monero-seed")
|
||||
|
||||
if(NOT CMAKE_BUILD_TYPE)
|
||||
set(CMAKE_BUILD_TYPE Release)
|
||||
message(STATUS "Setting default build type: ${CMAKE_BUILD_TYPE}")
|
||||
|
@ -30,6 +32,12 @@ target_include_directories(${PROJECT_NAME} PUBLIC
|
|||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
|
||||
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}/monero_seed>)
|
||||
|
||||
if(MONERO_SEED_DEMO)
|
||||
add_executable(demo src/main.cpp)
|
||||
set_property(TARGET demo PROPERTY CXX_STANDARD 11)
|
||||
target_link_libraries(demo -Wl,--whole-archive ${PROJECT_NAME} -Wl,--no-whole-archive)
|
||||
endif()
|
||||
|
||||
install(TARGETS ${PROJECT_NAME}
|
||||
EXPORT ${PROJECT_NAME}
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
All rights reserved.
|
||||
*/
|
||||
|
||||
#include "monero_seed.hpp"
|
||||
#include <monero_seed/monero_seed.hpp>
|
||||
#include <iostream>
|
||||
#include <iomanip>
|
||||
#include <sstream>
|
||||
|
|
Loading…
Reference in a new issue