comparison ui/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 126e5ce4d1d1
children 3ee529f42974
comparison
equal deleted inserted replaced
1070:f110a3f6e387 1071:fc4e1fe4e4d4
234 add_custom_command( 234 add_custom_command(
235 TARGET trustbridge-admin 235 TARGET trustbridge-admin
236 POST_BUILD 236 POST_BUILD
237 COMMAND ${CMAKE_STRIP} trustbridge-admin.exe 237 COMMAND ${CMAKE_STRIP} trustbridge-admin.exe
238 ) 238 )
239 if (NOT RELEASE_BUILD)
240 message("Status will sign.")
241 add_custom_command(
242 TARGET trustbridge
243 POST_BUILD
244 COMMAND ${OSSLSIGNCODE_EXECUTABLE} sign -certs ${CMAKE_SOURCE_DIR}/ui/tests/data/codesign/codesigning.pem
245 -key ${CMAKE_SOURCE_DIR}/ui/tests/data/codesign/codesigning.key
246 -h sha256 -in ${CMAKE_CURRENT_BINARY_DIR}/trustbridge.exe
247 -out ${CMAKE_CURRENT_BINARY_DIR}/trustbridge-signed.exe &&
248 mv ${CMAKE_CURRENT_BINARY_DIR}/trustbridge-signed.exe ${CMAKE_CURRENT_BINARY_DIR}/trustbridge.exe
249 )
250 add_custom_command(
251 TARGET trustbridge-admin
252 POST_BUILD
253 COMMAND ${OSSLSIGNCODE_EXECUTABLE} sign -certs ${CMAKE_SOURCE_DIR}/ui/tests/data/codesign/codesigning.pem
254 -key ${CMAKE_SOURCE_DIR}/ui/tests/data/codesign/codesigning.key
255 -h sha256 -in ${CMAKE_CURRENT_BINARY_DIR}/trustbridge-admin.exe
256 -out ${CMAKE_CURRENT_BINARY_DIR}/trustbridge-admin-signed.exe &&
257 mv ${CMAKE_CURRENT_BINARY_DIR}/trustbridge-admin-signed.exe ${CMAKE_CURRENT_BINARY_DIR}/trustbridge-admin.exe
258 )
259 endif()
239 else() 260 else()
240 add_custom_command( 261 add_custom_command(
241 TARGET trustbridge 262 TARGET trustbridge
242 POST_BUILD 263 POST_BUILD
243 COMMAND strip trustbridge 264 COMMAND strip trustbridge

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