Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

lustrec-tests / regression_tests / CMakeLists.txt @ 2d6a9bb3

History | View | Annotate | Download (920 Bytes)

1
cmake_minimum_required(VERSION 2.8.4)
2
project (lustrec-tests)
3
include( CTest )
4
include(FindJava)
5

    
6

    
7
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/modules)
8
include(./modules/Lustre_compile.cmake)
9
include(./modules/Zustre_compile.cmake)
10

    
11
if(JAVA_COMPILE AND EXISTS ${PROJECT_SOURCE_DIR}/modules/XPathParser_lusi.java)
12
	file(COPY ${PROJECT_SOURCE_DIR}/modules/XPathParser_lusi.java ${PROJECT_SOURCE_DIR}/modules/javax.xml-1.3.4.jar  DESTINATION  ${CMAKE_BINARY_DIR}/modules)
13
	add_custom_command(OUTPUT  ${CMAKE_BINARY_DIR}/modules/XPathParser_lusi.class 
14
						COMMAND ${JAVA_COMPILE} -classpath "'.;javax.xml-1.3.4.jar;'" XPathParser_lusi.java 
15
						WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/modules 
16
						COMMENT "compiling XPathParser_lusi")
17
	add_custom_target (XPathParser_lusi ALL
18
		DEPENDS ${CMAKE_BINARY_DIR}/modules/XPathParser_lusi.class)
19
else()
20
	message("javac not found")
21
endif()
22
add_subdirectory(lustre_files)
23

    
24