Browse Source
Help make things smaller in MinSizeRel builds. This actually brings us a little bit below the size of the pre-existing Visual Studio solution.master
7 changed files with 48 additions and 0 deletions
@ -1,2 +1,14 @@
|
||||
add_executable(PlayerTest main.cpp) |
||||
target_link_libraries(PlayerTest WaveSabrePlayerLib) |
||||
|
||||
if(MSVC) |
||||
target_link_libraries(PlayerTest |
||||
$<$<CONFIG:MinSizeRel>:${CMAKE_CURRENT_SOURCE_DIR}/msvcrt_old.lib>) |
||||
set_property(TARGET PlayerTest APPEND_STRING PROPERTY LINK_FLAGS_MINSIZEREL |
||||
" /NODEFAULTLIB /SAFESEH:NO /MANIFEST:NO /LTCG /OPT:REF /OPT:ICF /DYNAMICBASE:NO") |
||||
|
||||
if(MSVC AND MSVC_VERSION GREATER 1900) |
||||
target_compile_definitions(PlayerTest PRIVATE |
||||
$<$<CONFIG:MinSizeRel>:_NO_CRT_STDIO_INLINE>) |
||||
endif() |
||||
endif() |
||||
|
Loading…
Reference in new issue