-
Notifications
You must be signed in to change notification settings - Fork 3
/
CMakeLists.txt
69 lines (56 loc) · 1.88 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#/**********************************************************\
#
# Auto-generated CMakeLists.txt for the Bitcoin Trezor Plugin project
#
#\**********************************************************/
# Written to work with cmake 2.6
cmake_minimum_required (VERSION 2.6)
set (CMAKE_BACKWARDS_COMPATIBILITY 2.6)
Project(${PLUGIN_NAME})
file (GLOB GENERAL RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
[^.]*.cpp
[^.]*.cc
[^.]*.h
[^.]*.cmake
)
# Needed to link protobuf statically
set(CMAKE_FIND_LIBRARY_SUFFIXES .a ${CMAKE_FIND_LIBRARY_SUFFIXES})
include(FindProtobuf)
find_package(Protobuf REQUIRED STATIC)
include_directories(${PROTOBUF_INCLUDE_DIR})
include_directories(${PLUGIN_INCLUDE_DIRS})
add_subdirectory(trezor-crypto)
# Generated files are stored in ${GENERATED} by the project configuration
SET_SOURCE_FILES_PROPERTIES(
${GENERATED}
PROPERTIES
GENERATED 1
)
SOURCE_GROUP(Generated FILES
${GENERATED}
)
SET( SOURCES
${GENERAL}
${GENERATED}
)
# This will include Win/projectDef.cmake, X11/projectDef.cmake, Mac/projectDef
# depending on the platform
include_platform()
target_link_libraries(${PROJECT_NAME}
${PROTOBUF_LIBRARY}
TrezorCrypto
)
# this will build a Chrome package
#add_chrome_package(${PLUGIN_NAME}
# ${FB_BIN_DIR}/${PLUGIN_NAME}/${CMAKE_CFG_INTDIR}/
# "${FB_BIN_DIR}/${PLUGIN_NAME}/${CMAKE_CFG_INTDIR}/${FBSTRING_PluginFileName}.dll"
# "${CMAKE_CURRENT_SOURCE_DIR}/sign/package_key.pem"
# ${PROJECT_NAME})
# this will build a XPI package using XPISigner (see http://code.google.com/p/xpisigner/ )
# add_signed_xpi_installer(${PLUGIN_NAME}
# ${FB_BIN_DIR}/${PLUGIN_NAME}/${CMAKE_CFG_INTDIR}/
# "${FB_BIN_DIR}/${PLUGIN_NAME}/${CMAKE_CFG_INTDIR}/${FBSTRING_PluginFileName}.dll"
# $ENV{XPI_PATH}
# "${CMAKE_CURRENT_SOURCE_DIR}/sign/certificate.pfx"
# "${CMAKE_CURRENT_SOURCE_DIR}/sign/passphrase.txt"
# ${PROJECT_NAME})