comparison cinst/CMakeLists.txt @ 1176:c8f698ca6355

(issue128) Rename cinst to trustbridge-certificate-installer
author Andre Heinecke <andre.heinecke@intevation.de>
date Mon, 22 Sep 2014 11:34:06 +0200
parents e210ecc32d69
children e978f655be34
comparison
equal deleted inserted replaced
1175:e210ecc32d69 1176:c8f698ca6355
9 9
10 set(CMAKE_AUTOMOC OFF) 10 set(CMAKE_AUTOMOC OFF)
11 11
12 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../common) 12 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../common)
13 13
14 set(CINST_SOURCES 14 set(trustbridge-certificate-installer_SOURCES
15 ${CMAKE_CURRENT_SOURCE_DIR}/windowsstore.c 15 ${CMAKE_CURRENT_SOURCE_DIR}/windowsstore.c
16 ${CMAKE_CURRENT_SOURCE_DIR}/nssstore_linux.c 16 ${CMAKE_CURRENT_SOURCE_DIR}/nssstore_linux.c
17 ${CMAKE_CURRENT_SOURCE_DIR}/nssstore_win.c 17 ${CMAKE_CURRENT_SOURCE_DIR}/nssstore_win.c
18 ${CMAKE_CURRENT_SOURCE_DIR}/main.c 18 ${CMAKE_CURRENT_SOURCE_DIR}/certificate-installer.c
19 ) 19 )
20 add_executable(cinst ${CINST_SOURCES}) 20 add_executable(trustbridge-certificate-installer ${trustbridge-certificate-installer_SOURCES})
21 21
22 if (WIN32) 22 if (WIN32)
23 set(WIN_EXTRA_LIBS -lcrypt32 -luserenv -lshell32) 23 set(WIN_EXTRA_LIBS -lcrypt32 -luserenv -lshell32)
24 endif(WIN32) 24 endif(WIN32)
25 25
26 target_link_libraries(cinst 26 target_link_libraries(trustbridge-certificate-installer
27 trustbridge_common 27 trustbridge_common
28 ${PROFILING_LIBS} 28 ${PROFILING_LIBS}
29 ${POLARSSL_LIBRARIES} 29 ${POLARSSL_LIBRARIES}
30 ${WIN_EXTRA_LIBS}) 30 ${WIN_EXTRA_LIBS})
31 31
32 install(TARGETS cinst DESTINATION bin) 32 install(TARGETS trustbridge-certificate-installer DESTINATION bin)
33 if (WIN32) 33 if (WIN32)
34 add_custom_command( 34 add_custom_command(
35 TARGET cinst 35 TARGET trustbridge-certificate-installer
36 POST_BUILD 36 POST_BUILD
37 COMMAND ${CMAKE_STRIP} cinst.exe 37 COMMAND ${CMAKE_STRIP} trustbridge-certificate-installer.exe
38 ) 38 )
39 if (NOT RELEASE_BUILD) 39 if (NOT RELEASE_BUILD)
40 add_custom_command( 40 add_custom_command(
41 TARGET cinst 41 TARGET trustbridge-certificate-installer
42 POST_BUILD 42 POST_BUILD
43 COMMAND ${OSSLSIGNCODE_EXECUTABLE} sign -certs ${CMAKE_SOURCE_DIR}/ui/tests/data/codesign/codesigning.pem 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 44 -key ${CMAKE_SOURCE_DIR}/ui/tests/data/codesign/codesigning.key
45 -h sha256 -in ${CMAKE_CURRENT_BINARY_DIR}/cinst.exe 45 -h sha256 -in ${CMAKE_CURRENT_BINARY_DIR}/trustbridge-certificate-installer.exe
46 -out ${CMAKE_CURRENT_BINARY_DIR}/cinst-signed.exe && 46 -out ${CMAKE_CURRENT_BINARY_DIR}/trustbridge-certificate-installer-signed.exe &&
47 mv ${CMAKE_CURRENT_BINARY_DIR}/cinst-signed.exe ${CMAKE_CURRENT_BINARY_DIR}/cinst.exe 47 mv ${CMAKE_CURRENT_BINARY_DIR}/trustbridge-certificate-installer-signed.exe ${CMAKE_CURRENT_BINARY_DIR}/cinst.exe
48 ) 48 )
49 endif() 49 endif()
50 else() 50 else()
51 add_custom_command( 51 add_custom_command(
52 TARGET cinst 52 TARGET trustbridge-certificate-installer
53 POST_BUILD 53 POST_BUILD
54 COMMAND strip cinst 54 COMMAND strip trustbridge-certificate-installer
55 ) 55 )
56 endif() 56 endif()
57 57
58 # ---------------------------------------------------------------------- 58 # ----------------------------------------------------------------------
59 # trustbridge-nss-installer nss store specific certificate installer: 59 # trustbridge-nss-installer nss store specific certificate installer:

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