-
Notifications
You must be signed in to change notification settings - Fork 131
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
27 lines (24 loc) · 940 Bytes
/
CMakeLists.txt
File metadata and controls
27 lines (24 loc) · 940 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
#
# Adding unittest for unitary schemas
#
file(GLOB UNITARY_SCHEMAS "${CMAKE_CURRENT_SOURCE_DIR}/unitary_schemas/*.exp")
foreach(UNITARY_SCHEMA ${UNITARY_SCHEMAS})
get_filename_component(SCHEMA_NAME ${UNITARY_SCHEMA} NAME_WE)
set(TEST_NAME test_unit_${SCHEMA_NAME})
add_test(${TEST_NAME} ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/check-express ${UNITARY_SCHEMA})
set_tests_properties( ${TEST_NAME} PROPERTIES LABELS unitary_schemas DEPENDS build_check_express )
#if the file name begins with fail_, then testing it should result in an error.
if( UNITARY_SCHEMA MATCHES "fail_.*" )
set_tests_properties( ${TEST_NAME} PROPERTIES WILL_FAIL true )
endif( UNITARY_SCHEMA MATCHES "fail_.*" )
endforeach(UNITARY_SCHEMA ${UNITARY_SCHEMAS})
if(NOT ${SC_BUILD_EXPRESS_ONLY})
add_subdirectory(p21)
add_subdirectory(cpp)
endif()
# Local Variables:
# tab-width: 8
# mode: cmake
# indent-tabs-mode: t
# End:
# ex: shiftwidth=2 tabstop=8