comparison cinst/CMakeLists.txt @ 1019:4f999c7821ce 0.9

Strip created executables
author Andre Heinecke <andre.heinecke@intevation.de>
date Tue, 02 Sep 2014 16:03:40 +0200
parents 8081ed84589d
children fc4e1fe4e4d4
comparison
equal deleted inserted replaced
1018:86181a99da76 1019:4f999c7821ce
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 cinst DESTINATION bin)
33 if (WIN32)
34 add_custom_command(
35 TARGET cinst
36 POST_BUILD
37 COMMAND ${CMAKE_STRIP} cinst.exe
38 )
39 else()
40 add_custom_command(
41 TARGET cinst
42 POST_BUILD
43 COMMAND strip cinst
44 )
45 endif()
33 46
34 # ---------------------------------------------------------------------- 47 # ----------------------------------------------------------------------
35 # Mozilla nss store specific certificate installer: 48 # Mozilla nss store specific certificate installer:
36 set(MOZILLA_SOURCES 49 set(MOZILLA_SOURCES
37 ${CMAKE_CURRENT_SOURCE_DIR}/nss-secitemlist.c 50 ${CMAKE_CURRENT_SOURCE_DIR}/nss-secitemlist.c
46 ${POLARSSL_LIBRARIES} 59 ${POLARSSL_LIBRARIES}
47 ${NSS_LIBRARIES} 60 ${NSS_LIBRARIES}
48 ${PROFILING_LIBS}) 61 ${PROFILING_LIBS})
49 set_target_properties(mozilla PROPERTIES COMPILE_FLAGS "-std=c99") 62 set_target_properties(mozilla PROPERTIES COMPILE_FLAGS "-std=c99")
50 install(TARGETS mozilla DESTINATION bin) 63 install(TARGETS mozilla DESTINATION bin)
64
65 if (WIN32)
66 add_custom_command(
67 TARGET mozilla
68 POST_BUILD
69 COMMAND ${CMAKE_STRIP} mozilla.exe
70 )
71 else()
72 add_custom_command(
73 TARGET mozilla
74 POST_BUILD
75 COMMAND strip mozilla
76 )
77 endif()
51 else() 78 else()
52 message(STATUS "WARNING: Could not find nss. Mozilla cert installer will not be build!") 79 message(STATUS "WARNING: Could not find nss. Mozilla cert installer will not be build!")
53 endif() 80 endif()

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