forked from Eyescale/CMake
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCommonCTest.cmake
More file actions
27 lines (25 loc) · 945 Bytes
/
CommonCTest.cmake
File metadata and controls
27 lines (25 loc) · 945 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Copyright (c) 2010 Daniel Pfeifer
# 2010-2015, Stefan Eilemann <eile@eyescale.ch>
# 2014, Juan Hernando <jhernando@fi.upm.es>
if(NOT TARGET tests)
add_custom_target(tests)
set_target_properties(tests PROPERTIES EXCLUDE_FROM_DEFAULT_BUILD ON)
endif()
if(NOT TARGET cpptests)
add_custom_target(cpptests)
set_target_properties(cpptests PROPERTIES EXCLUDE_FROM_DEFAULT_BUILD ON)
endif()
if(NOT TARGET perftests)
add_custom_target(perftests)
set_target_properties(perftests PROPERTIES EXCLUDE_FROM_DEFAULT_BUILD ON)
endif()
if(NOT TARGET nightlytests)
add_custom_target(nightlytests)
set_target_properties(nightlytests PROPERTIES EXCLUDE_FROM_DEFAULT_BUILD ON)
endif()
if(NOT TARGET ${PROJECT_NAME}-tests)
add_custom_target(${PROJECT_NAME}-tests)
set_target_properties(${PROJECT_NAME}-tests PROPERTIES
EXCLUDE_FROM_DEFAULT_BUILD ON FOLDER ${PROJECT_NAME}/tests)
endif()
include(CommonCPPCTest)