Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

lustrec-tests / regression_tests / lustre_files / success / Stateflow / CMakeLists.txt @ cc6eda98

History | View | Annotate | Download (1021 Bytes)

1 eb639349 bourbouh
cmake_minimum_required(VERSION 2.8.4)
2 6304ff63 bourbouh
3 eb639349 bourbouh
4 cc6eda98 bourbouh
set(LUSTRE_OPTIONS_OPT "" )
5
set(MAX_INPUT_VALUE 100)
6 eb639349 bourbouh
7
8
#proceed all subdirectories
9 6c3ea955 bourbouh
SUBDIRLIST(SUBDIRS ${CMAKE_CURRENT_SOURCE_DIR}  "src_")
10 eb639349 bourbouh
FOREACH(subdir ${SUBDIRS})
11 cc6eda98 bourbouh
  LUSTREFILES(LFILES ${subdir} )
12
  set(TESTS_PREFIX "Steteflow")
13
  set(SRC_DIR "${CMAKE_CURRENT_SOURCE_DIR}/${subdir}")
14
  set(DST_DIR "${CMAKE_CURRENT_BINARY_DIR}")
15
  FOREACH(lus_file ${LFILES})
16 eb639349 bourbouh
	get_filename_component(L ${lus_file} NAME_WE)
17 cc6eda98 bourbouh
	set(NODE_NAME  "${L}")
18
	Copy_or_generate_lusi_input_and_output_values_for_reference(
19
		LUS_FILE ${lus_file}
20
		NODE ${NODE_NAME}
21
		OPTS ${LUSTRE_OPTIONS_OPT}
22
		MAX ${MAX_INPUT_VALUE}  	#maximum value for input values.
23
		SRC_DIR ${SRC_DIR}
24
		DST_DIR ${DST_DIR}
25 fa9e78e5 bourbouh
	)
26
27 cc6eda98 bourbouh
	Lustre_compile_and_compare_to_reference(
28
		LUS_FILE ${lus_file}
29
		NODE ${NODE_NAME}
30
		TESTS_PREFIX ${TESTS_PREFIX}
31
		OPTS ${LUSTRE_OPTIONS_OPT}
32
		CALL_ID "1"
33
		SRC_DIR ${SRC_DIR}
34
		DST_DIR ${DST_DIR}
35 fa9e78e5 bourbouh
	)
36
	
37 cc6eda98 bourbouh
  ENDFOREACH()
38 b2b5e09a bourbouh
ENDFOREACH()
39
40 cc6eda98 bourbouh
add_custom_target(Steteflow COMMAND ${CMAKE_CTEST_COMMAND} -R Steteflow)