random ai stuff
This commit is contained in:
19
telldus-core/cmake/FindSignTool.cmake
Normal file
19
telldus-core/cmake/FindSignTool.cmake
Normal file
@@ -0,0 +1,19 @@
|
||||
|
||||
IF(WIN32)
|
||||
SET(SIGN_FILES FALSE CACHE BOOL "Sign the generated files. This requires a certificate to be installed on the computer!")
|
||||
ENDIF()
|
||||
|
||||
FUNCTION(SIGN TARGET)
|
||||
IF (NOT WIN32)
|
||||
RETURN()
|
||||
ENDIF()
|
||||
IF (NOT SIGN_FILES)
|
||||
RETURN()
|
||||
ENDIF()
|
||||
GET_TARGET_PROPERTY(file ${TARGET} LOCATION)
|
||||
GET_FILENAME_COMPONENT(filename ${file} NAME)
|
||||
ADD_CUSTOM_COMMAND( TARGET ${TARGET} POST_BUILD
|
||||
COMMAND signtool.exe sign /a /t http://timestamp.verisign.com/scripts/timstamp.dll ${file}
|
||||
COMMENT "Signing file ${filename}"
|
||||
)
|
||||
ENDFUNCTION()
|
||||
Reference in New Issue
Block a user