Debian Codegraph @

tests/trezor/CMakeLists.txt

raw
1 # Copyright (c) 2014-2022, The Monero Project
2 #
3 # All rights reserved.
4 #
5 # Redistribution and use in source and binary forms, with or without modification, are
6 # permitted provided that the following conditions are met:
7 #
8 # 1. Redistributions of source code must retain the above copyright notice, this list of
9 # conditions and the following disclaimer.
10 #
11 # 2. Redistributions in binary form must reproduce the above copyright notice, this list
12 # of conditions and the following disclaimer in the documentation and/or other
13 # materials provided with the distribution.
14 #
15 # 3. Neither the name of the copyright holder nor the names of its contributors may be
16 # used to endorse or promote products derived from this software without specific
17 # prior written permission.
18 #
19 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
20 # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
21 # MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
22 # THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
24 # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25 # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
26 # STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
27 # THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
29 set(trezor_tests_sources
30 tools.cpp
31 daemon.cpp
32 trezor_tests.cpp
33 ../core_tests/chaingen.cpp
34 ../core_tests/wallet_tools.cpp)
35
36 set(trezor_tests_headers
37 tools.h
38 daemon.h
39 trezor_tests.h
40 ../core_tests/chaingen.h
41 ../core_tests/wallet_tools.h)
42
43 monero_add_minimal_executable(trezor_tests
44 ${trezor_tests_sources}
45 ${trezor_tests_headers})
46
47 target_link_libraries(trezor_tests
48 PRIVATE
49 multisig
50 cryptonote_core
51 p2p
52 version
53 epee
54 device
55 device_trezor
56 wallet
57 wallet_api
58 rpc
59 cryptonote_protocol
60 daemon_rpc_server
61 ${Boost_CHRONO_LIBRARY}
62 ${Boost_FILESYSTEM_LIBRARY}
63 ${Boost_PROGRAM_OPTIONS_LIBRARY}
64 ${Boost_SYSTEM_LIBRARY}
65 ${ZMQ_LIB}
66 ${CMAKE_THREAD_LIBS_INIT}
67 ${EXTRA_LIBRARIES})
68
69 enable_stack_trace(trezor_tests)
70 set_property(TARGET trezor_tests
71 PROPERTY
72 FOLDER "tests")
73
74 add_test(
75 NAME trezor_tests
76 COMMAND trezor_tests)