summaryrefslogtreecommitdiffstats
path: root/Tests/IncludeTest/CMakeLists.txt
blob: 15a87b019534efd34b1aba887ccd90b8417f71b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
cmake_minimum_required (VERSION 3.6)

project(DiligentFX-IncludeTest)

file(GLOB_RECURSE SOURCE LIST_DIRECTORIES false *.cpp)

add_library(DiligentFX-IncludeTest ${SOURCE})

target_include_directories(DiligentFX-IncludeTest PRIVATE ../..)
target_link_libraries(DiligentFX-IncludeTest PRIVATE Diligent-BuildSettings)
set_common_target_properties(DiligentFX-IncludeTest)

if(MSVC)
    set_target_properties(DiligentFX-IncludeTest PROPERTIES 
        STATIC_LIBRARY_FLAGS "/IGNORE:4221"
    )
endif()

source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR} FILES ${SOURCE})

set_target_properties(DiligentFX-IncludeTest PROPERTIES
    FOLDER "DiligentFX/Tests"
)