Move the signing stuff out of cmake

This commit is contained in:
Chris Marsh
2017-11-29 14:00:28 -08:00
parent 8cae35ea46
commit b01d0a8af3
3 changed files with 32 additions and 40 deletions

View File

@ -4,7 +4,6 @@ project (DiscordRPC)
include(GNUInstallDirs)
option(BUILD_EXAMPLES "Build example apps" ON)
option(SIGN_BUILD "Sign resulting dll with digital cert" OFF)
# format
file(GLOB_RECURSE ALL_SOURCE_FILES
@ -55,15 +54,3 @@ add_subdirectory(src)
if (BUILD_EXAMPLES)
add_subdirectory(examples/send-presence)
endif(BUILD_EXAMPLES)
# sign builds
if (SIGN_BUILD)
if(WIN32)
find_program(SIGNTOOL_EXECUTABLE signtool)
endif(WIN32)
if (APPLE)
find_program(SIGNTOOL_EXECUTABLE codesign)
endif(APPLE)
# todo linux? gpg sign a hash maybe? does anyone care/check these?
endif(SIGN_BUILD)