build: debug and test builds via contrib

This commit is contained in:
Dusan Klinec 2019-04-09 19:23:28 +02:00
parent 5dbcceb664
commit f29fecd517
No known key found for this signature in database
GPG key ID: 6337E118CCBCE103
7 changed files with 88 additions and 5 deletions

View file

@ -1,9 +1,16 @@
# Set the system name, either Darwin, Linux, or Windows
SET(CMAKE_SYSTEM_NAME @depends@)
SET(CMAKE_BUILD_TYPE release)
SET(CMAKE_BUILD_TYPE @release_type@)
SET(STATIC true)
SET(UNBOUND_STATIC true)
OPTION(STATIC "Link libraries statically" ON)
OPTION(TREZOR_DEBUG "Main trezor debugging switch" OFF)
OPTION(BUILD_TESTS "Build tests." OFF)
SET(STATIC ON)
SET(UNBOUND_STATIC ON)
SET(BUILD_TESTS @build_tests@)
SET(TREZOR_DEBUG @build_tests@)
# where is the target environment
SET(CMAKE_FIND_ROOT_PATH @prefix@ /usr)