Project

General

Profile

Revision 2d6a9bb3 regression_tests/CMakeLists.txt

View differences:

regression_tests/CMakeLists.txt
1 1
cmake_minimum_required(VERSION 2.8.4)
2 2
project (lustrec-tests)
3 3
include( CTest )
4
include(FindJava)
5

  
4 6

  
5 7
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/modules)
6 8
include(./modules/Lustre_compile.cmake)
7 9
include(./modules/Zustre_compile.cmake)
8
	
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()
9 22
add_subdirectory(lustre_files)
10 23

  
11 24
    

Also available in: Unified diff