@ -28,8 +28,24 @@ add_executable(${PROJECT_NAME} WIN32
r e s / o p e n v p n - g u i - r e s . r c )
r e s / o p e n v p n - g u i - r e s . r c )
set ( CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -DDEBUG" )
set ( CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -DDEBUG" )
set ( CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS} /guard:cf /Qspectre" )
if ( MSVC )
list ( APPEND CMAKE_CONFIGURATION_TYPES Asan )
endif ( MSVC )
set ( CMAKE_C_FLAGS_ASAN
" $ { C M A K E _ C _ F L A G S _ D E B U G } / f s a n i t i z e = a d d r e s s " C A C H E S T R I N G
" F l a g s u s e d b y t h e C c o m p i l e r d u r i n g A d d r e s s S a n i t i z e r b u i l d s . " F O R C E )
set ( CMAKE_EXE_LINKER_FLAGS_ASAN
" $ { C M A K E _ E X E _ L I N K E R _ F L A G S _ D E B U G } " C A C H E S T R I N G
" F l a g s u s e d b y t h e l i n k e r d u r i n g A d d r e s s S a n i t i z e r b u i l d s . " F O R C E )
set ( CMAKE_SHARED_LINKER_FLAGS_ASAN
" $ { C M A K E _ S H A R E D _ L I N K E R _ F L A G S _ D E B U G } " C A C H E S T R I N G
" F l a g s u s e d b y t h e l i n k e r d u r i n g A d d r e s s S a n i t i z e r b u i l d s . " F O R C E )
set ( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /guard:cf /Qspectre" )
set ( CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /guard:cf /DYNAMICBASE" )
set ( CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /guard:cf /DYNAMICBASE" )
set ( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /wd4996 /wd4267 /wd4244" )
set ( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /wd4996 /wd4267 /wd4244" )
@ -160,5 +176,6 @@ if(MSVC)
" $ < $ < C O N F I G : R e l e a s e > : / O P T : I C F > " )
" $ < $ < C O N F I G : R e l e a s e > : / O P T : I C F > " )
endif ( MSVC )
endif ( MSVC )
set_target_properties ( ${ TEST_PLAP_EXE } PROPERTIES
target_link_options ( ${ TEST_PLAP_EXE } PRIVATE
L I N K _ F L A G S " / M A N I F E S T : E M B E D / M A N I F E S T I N P U T : $ { C M A K E _ S O U R C E _ D I R } / p l a p / t e s t - p l a p . m a n i f e s t " )
" / M A N I F E S T : E M B E D "
" / M A N I F E S T I N P U T : $ { C M A K E _ S O U R C E _ D I R } / p l a p / t e s t - p l a p . m a n i f e s t " )