Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

lustrec-tests / regression_tests / lustre_files / success / lusic / CMakeLists.txt @ 4f76e5f5

History | View | Annotate | Download (761 Bytes)

1
cmake_minimum_required(VERSION 2.8.4)
2
include(FindUnixCommands)
3

    
4

    
5
set(GLOBAL_LUSTRE_FILES "test2.lus" "test1.lus")
6
FOREACH(lus_file ${GLOBAL_LUSTRE_FILES})
7
	get_filename_component(L ${lus_file} NAME_WE)
8
	set(LUSTRE_NODE_OPT  "")
9
	#first combination :
10
	set(LUSTRE_OPTIONS_OPT "")
11

    
12
	
13
	# First command generate C files from Lustre file
14
	Lustre_Compile(LUS_FILE ${lus_file}
15
					NODE ${LUSTRE_NODE_OPT}
16
					OPTS ${LUSTRE_OPTIONS_OPT}
17
					CALL_ID "1")
18
					
19
	set(LUS_OPTS_CUT_1 "${LUSTRE_OPTS_POSTFIX_${L}_1}")
20
	add_test(NAME lusic_COMPIL_LUSTRE_${L}_${LUSTRE_NODE_OPT}_${LUS_OPTS_CUT_1}
21
			COMMAND  ${LUSTRE_COMPILER} ${LUSTREC_ARGS_${L}_${LUSTRE_NODE_OPT}_${LUS_OPTS_CUT_1}} 
22
	)
23

    
24
	
25
ENDFOREACH()
26

    
27
add_custom_target(lusic COMMAND ${CMAKE_CTEST_COMMAND} -R lusic)
28