diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2017-12-10 06:46:45 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2017-12-10 06:46:45 +0000 |
| commit | 26cc27e45f811ec48993b13c398af324a842e0f0 (patch) | |
| tree | d6cec1e2478e8ff46ade5bf5d129f371cab5bae1 /Graphics/GraphicsEngine | |
| parent | Fixed tolower()-related warnings (diff) | |
| download | DiligentCore-26cc27e45f811ec48993b13c398af324a842e0f0.tar.gz DiligentCore-26cc27e45f811ec48993b13c398af324a842e0f0.zip | |
Updated cmake lists: enabled link-time code generation for MSVC
Diffstat (limited to 'Graphics/GraphicsEngine')
| -rw-r--r-- | Graphics/GraphicsEngine/CMakeLists.txt | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/Graphics/GraphicsEngine/CMakeLists.txt b/Graphics/GraphicsEngine/CMakeLists.txt index 8aed9f16..5bfd92c4 100644 --- a/Graphics/GraphicsEngine/CMakeLists.txt +++ b/Graphics/GraphicsEngine/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required (VERSION 3.3) -project(GraphicsEngine) +project(GraphicsEngine CXX) set(INCLUDE include/BufferBase.h @@ -60,17 +60,25 @@ target_include_directories(GraphicsEngine PUBLIC include interface -) - -target_include_directories(GraphicsEngine PRIVATE ../GraphicsTools/include ) + set_target_properties(GraphicsEngine PROPERTIES FOLDER Core/Graphics ) target_link_libraries(GraphicsEngine PRIVATE BuildSettings PlatformInterface Common) +if(MSVC) + # Enable link-time code generation for release builds (I was not able to + # find any way to set these settings through interface library BuildSettings) + set_target_properties(GraphicsEngine PROPERTIES + STATIC_LIBRARY_FLAGS_RELEASE /LTCG + STATIC_LIBRARY_FLAGS_MINSIZEREL /LTCG + STATIC_LIBRARY_FLAGS_RELWITHDEBINFO /LTCG + ) +endif() + source_group("src" FILES ${SOURCE}) source_group("include" FILES ${INCLUDE}) source_group("interface" FILES ${INTERFACE}) |
