comparison cinst/CMakeLists.txt @ 1071:fc4e1fe4e4d4

(issue116) Sign binaries with test certificate if RELESE_BUILD option is not used
author Andre Heinecke <andre.heinecke@intevation.de>
date Wed, 10 Sep 2014 17:52:11 +0200
parents 4f999c7821ce
children 148014db2f3b e210ecc32d69
comparison
equal deleted inserted replaced
1070:f110a3f6e387 1071:fc4e1fe4e4d4
34 add_custom_command( 34 add_custom_command(
35 TARGET cinst 35 TARGET cinst
36 POST_BUILD 36 POST_BUILD
37 COMMAND ${CMAKE_STRIP} cinst.exe 37 COMMAND ${CMAKE_STRIP} cinst.exe
38 ) 38 )
39 if (NOT RELEASE_BUILD)
40 add_custom_command(
41 TARGET cinst
42 POST_BUILD
43 COMMAND ${OSSLSIGNCODE_EXECUTABLE} sign -certs ${CMAKE_SOURCE_DIR}/ui/tests/data/codesign/codesigning.pem
44 -key ${CMAKE_SOURCE_DIR}/ui/tests/data/codesign/codesigning.key
45 -h sha256 -in ${CMAKE_CURRENT_BINARY_DIR}/cinst.exe
46 -out ${CMAKE_CURRENT_BINARY_DIR}/cinst-signed.exe &&
47 mv ${CMAKE_CURRENT_BINARY_DIR}/cinst-signed.exe ${CMAKE_CURRENT_BINARY_DIR}/cinst.exe
48 )
49 endif()
39 else() 50 else()
40 add_custom_command( 51 add_custom_command(
41 TARGET cinst 52 TARGET cinst
42 POST_BUILD 53 POST_BUILD
43 COMMAND strip cinst 54 COMMAND strip cinst
66 add_custom_command( 77 add_custom_command(
67 TARGET mozilla 78 TARGET mozilla
68 POST_BUILD 79 POST_BUILD
69 COMMAND ${CMAKE_STRIP} mozilla.exe 80 COMMAND ${CMAKE_STRIP} mozilla.exe
70 ) 81 )
82 if (NOT RELEASE_BUILD)
83 add_custom_command(
84 TARGET mozilla
85 POST_BUILD
86 COMMAND ${OSSLSIGNCODE_EXECUTABLE} sign -certs ${CMAKE_SOURCE_DIR}/ui/tests/data/codesign/codesigning.pem
87 -key ${CMAKE_SOURCE_DIR}/ui/tests/data/codesign/codesigning.key
88 -h sha256 -in ${CMAKE_CURRENT_BINARY_DIR}/mozilla.exe
89 -out ${CMAKE_CURRENT_BINARY_DIR}/mozilla-signed.exe &&
90 mv ${CMAKE_CURRENT_BINARY_DIR}/mozilla-signed.exe ${CMAKE_CURRENT_BINARY_DIR}/mozilla.exe
91 )
92 endif()
71 else() 93 else()
72 add_custom_command( 94 add_custom_command(
73 TARGET mozilla 95 TARGET mozilla
74 POST_BUILD 96 POST_BUILD
75 COMMAND strip mozilla 97 COMMAND strip mozilla

http://wald.intevation.org/projects/trustbridge/