Project

General

Profile

Download (922 Bytes) Statistics
| Branch: | Tag: | Revision:
1 eb639349 bourbouh
cmake_minimum_required(VERSION 2.8.4)
2
project (lustrec-tests)
3 6304ff63 bourbouh
include( CTest )
4 2d6a9bb3 bourbouh
include(FindJava)
5
6 eb639349 bourbouh
7 270fffd4 bourbouh
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/modules)
8
include(./modules/Lustre_compile.cmake)
9 fa9e78e5 bourbouh
include(./modules/Zustre_compile.cmake)
10 2d6a9bb3 bourbouh
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 b7026160 bourbouh
23
24 eb639349 bourbouh
add_subdirectory(lustre_files)
25
26 6c3ea955 bourbouh