@ -149,21 +149,47 @@ ENDIF(CMAKE_GENERATOR MATCHES "Visual Studio 7" OR
ADD_DEFINITIONS ( "-D_WINDOWS -D__WIN__ -D_CRT_SECURE_NO_DEPRECATE" )
IF ( EMBED_MANIFESTS )
# S e a r c h f o r t h e M a n i f e s t t o o l . C M a k e w i l l f i r s t s e a r c h i t ' s d e f a u l t s
# ( C M A K E _ F R A M E W O R K _ P A T H , C M A K E _ A P P B U N D L E _ P A T H , C M A K E _ P R O G R A M _ P A T H a n d
# t h e s y s t e m P A T H ) f o l l o w e d b y t h e l i s t e d p a t h s w h i c h a r e t h e c u r r e n t
# p o s s i b l e d e f a u l t s a n d s h o u l d b e u p d a t e d w h e n n e c e s s a r y . T h e c u s t o m
# m a n i f e s t s a r e d e s i g n e d t o b e c o m p a t i b l e w i t h a l l m t v e r s i o n s .
# S e a r c h f o r t h e tools ( mt, makecat, signtool ) n e c e s s a r y f o r e m b e d d i n g
# m a n i f e s t s a n d s i g n i n g e x e c u t a b l e s w i t h t h e M y S Q L A B a u t h e n t i c o d e c e r t .
#
# C M a k e w i l l f i r s t s e a r c h i t ' s defaults ( CMAKE_FRAMEWORK_PATH,
# C M A K E _ A P P B U N D L E _ P A T H , C M A K E _ P R O G R A M _ P A T H a n d t h e s y s t e m P A T H ) f o l l o w e d
# b y t h e l i s t e d p a t h s w h i c h a r e t h e c u r r e n t p o s s i b l e d e f a u l t s a n d s h o u l d b e
# u p d a t e d w h e n n e c e s s a r y .
#
# T h e c u s t o m m a n i f e s t s a r e d e s i g n e d t o b e c o m p a t i b l e w i t h a l l m t v e r s i o n s .
# T h e M y S Q L A B A u t h e n t i c o d e c e r t i f i c a t e i s a v a i l a b l e o n l y i n t e r n a l l y .
# O t h e r s s h o u l d s t o r e a s i n g l e s i g n i n g c e r t i f i c a t e i n a l o c a l c r y p t o g r a p h i c
# s e r v i c e p r o v i d e r a n d a l t e r t h e s i g n t o o l c o m m a n d a s n e c e s s a r y .
FIND_PROGRAM ( HAVE_MANIFEST_TOOL NAMES mt
P A T H S
" $ E N V { P R O G R A M F I L E S } / M i c r o s o f t V i s u a l S t u d i o 8 / V C / b i n "
" $ E N V { P R O G R A M F I L E S } / M i c r o s o f t V i s u a l S t u d i o 8 / C o m m o n 7 / T o o l s / B i n "
" $ E N V { P R O G R A M F I L E S } / M i c r o s o f t V i s u a l S t u d i o 8 / S D K / v 2 . 0 / B i n " )
FIND_PROGRAM ( HAVE_CATALOG_TOOL NAMES makecat
P A T H S
" $ E N V { P R O G R A M F I L E S } / M i c r o s o f t V i s u a l S t u d i o 8 / C o m m o n 7 / T o o l s / B i n " )
FIND_PROGRAM ( HAVE_SIGN_TOOL NAMES signtool
P A T H S
" $ E N V { P R O G R A M F I L E S } / M i c r o s o f t V i s u a l S t u d i o 8 / C o m m o n 7 / T o o l s / B i n "
" $ E N V { P R O G R A M F I L E S } / M i c r o s o f t V i s u a l S t u d i o 8 / S D K / v 2 . 0 / B i n " )
IF ( HAVE_MANIFEST_TOOL )
MESSAGE ( STATUS "Found Mainfest Tool. Embedding custom manifests." )
MESSAGE ( STATUS "Found Mainfest Tool." )
ELSE ( HAVE_MANIFEST_TOOL )
MESSAGE ( FATAL_ERROR "Manifest tool, mt.exe, can't be found." )
ENDIF ( HAVE_MANIFEST_TOOL )
IF ( HAVE_CATALOG_TOOL )
MESSAGE ( STATUS "Found Catalog Tool." )
ELSE ( HAVE_CATALOG_TOOL )
MESSAGE ( FATAL_ERROR "Catalog tool, makecat.exe, can't be found." )
ENDIF ( HAVE_CATALOG_TOOL )
IF ( HAVE_SIGN_TOOL )
MESSAGE ( STATUS "Found Sign Tool. Embedding custom manifests and signing executables." )
ELSE ( HAVE_SIGN_TOOL )
MESSAGE ( FATAL_ERROR "Sign tool, signtool.exe, can't be found." )
ENDIF ( HAVE_SIGN_TOOL )
# D i s a b l e a u t o m a t i c m a n i f e s t g e n e r a t i o n .
STRING ( REPLACE "/MANIFEST" "/MANIFEST:NO" CMAKE_EXE_LINKER_FLAGS
$ { C M A K E _ E X E _ L I N K E R _ F L A G S } )