Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Kitware
GitHub Repository: Kitware/CMake
Path: blob/master/Tests/CTestTest/SmallAndFast/CMakeLists.txt
3153 views
1
cmake_minimum_required(VERSION 3.10)
2
project(SmallAndFast)
3
4
include(CTest)
5
6
add_executable(echoargs echoargs.c)
7
set_property(SOURCE echoargs.c APPEND PROPERTY LABELS SourceLabel Everything)
8
set_property(TARGET echoargs APPEND PROPERTY LABELS TargetLabel Everything)
9
10
add_test(test0 echoargs)
11
set_property(TEST test0 APPEND PROPERTY LABELS TestLabel 0ArgTest Everything)
12
13
add_test(test1 echoargs 1)
14
set_property(TEST test1 APPEND PROPERTY LABELS TestLabel 1ArgTest Everything)
15
16
add_test(test2 echoargs 1 2)
17
set_property(TEST test2 APPEND PROPERTY LABELS TestLabel 2ArgTest Everything)
18
19
if(SAF_INTENTIONAL_COMPILE_ERROR)
20
add_executable(ice intentional_compile_error.cxx)
21
endif()
22
23
if(SAF_INTENTIONAL_COMPILE_WARNING)
24
add_executable(icw intentional_compile_warning.cxx)
25
endif()
26
27