comparison ui/tests/CMakeLists.txt @ 774:44fa5de02b52

(issue43) Finalize and verify binary verification for linux.
author Andre Heinecke <andre.heinecke@intevation.de>
date Fri, 11 Jul 2014 16:20:27 +0200
parents 2c69298b4188
children 8081ed84589d
comparison
equal deleted inserted replaced
773:2c69298b4188 774:44fa5de02b52
119 TARGET binverifytest 119 TARGET binverifytest
120 POST_BUILD 120 POST_BUILD
121 COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/append-sig.sh ${CMAKE_CURRENT_SOURCE_DIR}/data/codesign/codesigning.key 121 COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/append-sig.sh ${CMAKE_CURRENT_SOURCE_DIR}/data/codesign/codesigning.key
122 ${CMAKE_CURRENT_BINARY_DIR}/fakeinst ${CMAKE_CURRENT_BINARY_DIR}/fakeinst-signed 122 ${CMAKE_CURRENT_BINARY_DIR}/fakeinst ${CMAKE_CURRENT_BINARY_DIR}/fakeinst-signed
123 ) 123 )
124 # add_custom_command( 124 add_custom_command(
125 # TARGET binverifytest 125 TARGET binverifytest
126 # POST_BUILD 126 POST_BUILD
127 # COMMAND ${OSSLSIGNCODE_EXECUTABLE} sign -certs ${CMAKE_CURRENT_SOURCE_DIR}/data/codesign/codesigning.pem 127 COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/append-sig.sh ${CMAKE_CURRENT_SOURCE_DIR}/data/codesign/codesigning-other.key
128 # -key ${CMAKE_CURRENT_SOURCE_DIR}/data/codesign/codesigning-other.key 128 ${CMAKE_CURRENT_BINARY_DIR}/fakeinst ${CMAKE_CURRENT_BINARY_DIR}/fakeinst-other-key
129 # -h sha256 -in ${CMAKE_CURRENT_BINARY_DIR}/fakeinst.exe 129 )
130 # -out ${CMAKE_CURRENT_BINARY_DIR}/fakeinst-other-key.exe 130 add_custom_command(
131 # ) 131 TARGET binverifytest
132 # add_custom_command( 132 POST_BUILD
133 # TARGET binverifytest 133 COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/append-sig.sh ${CMAKE_CURRENT_SOURCE_DIR}/data/codesign/codesigning.key
134 # POST_BUILD 134 ${CMAKE_CURRENT_BINARY_DIR}/fakeinst ${CMAKE_CURRENT_BINARY_DIR}/fakeinst-invalid &&
135 # COMMAND ${OSSLSIGNCODE_EXECUTABLE} sign -certs ${CMAKE_CURRENT_SOURCE_DIR}/data/codesign/codesigning-other.pem 135 sed -i s/Fakeinstaller/Bakeinstaller/g ${CMAKE_CURRENT_BINARY_DIR}/fakeinst-invalid
136 # -key ${CMAKE_CURRENT_SOURCE_DIR}/data/codesign/codesigning-other.key 136 )
137 # -h sha256 -in ${CMAKE_CURRENT_BINARY_DIR}/fakeinst.exe
138 # -out ${CMAKE_CURRENT_BINARY_DIR}/fakeinst-other-cert.exe
139 # )
140 # add_custom_command(
141 # TARGET binverifytest
142 # POST_BUILD
143 # COMMAND ${OSSLSIGNCODE_EXECUTABLE} sign -certs ${CMAKE_CURRENT_SOURCE_DIR}/data/codesign/codesigning.pem
144 # -key ${CMAKE_CURRENT_SOURCE_DIR}/data/codesign/codesigning.key
145 # -h sha256 -in ${CMAKE_CURRENT_BINARY_DIR}/fakeinst.exe
146 # -out ${CMAKE_CURRENT_BINARY_DIR}/fakeinst-invalid.exe &&
147 # ${CMAKE_STRIP} ${CMAKE_CURRENT_BINARY_DIR}/fakeinst-invalid.exe
148 # )
149 endif() 137 endif()
150 endif () 138 endif ()
151 139
152 if (NSS_FOUND) 140 if (NSS_FOUND)
153 include_directories(${NSS_INCLUDE_DIRS}) 141 include_directories(${NSS_INCLUDE_DIRS})

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