aboutsummaryrefslogtreecommitdiff
path: root/tinytest/CMakeLists.txt
blob: 3896e6658dbccb76606b5b0afc916215bbb52f2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
add_library(libtinytest STATIC
    tinytest.c tinytest.h)

target_include_directories(libtinytest
    PUBLIC
        $<INSTALL_INTERFACE:.>
        $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
)

if(CMAKE_HOST_WIN32)
    if(MSVC)
        set_target_properties(libtinytest
            PROPERTIES
                COMPILE_FLAGS "/wd4996"
            )
    endif()
endif()