Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

lustrec-tests / regression_tests / CMakeLists.txt @ 6c3ea955

History | View | Annotate | Download (608 Bytes)

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

    
5
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/modules)
6
include(./modules/Lustre_compile.cmake)
7

    
8
file(COPY ${PROJECT_SOURCE_DIR}/modules/read_value.c  DESTINATION  ${CMAKE_BINARY_DIR}/modules)
9
add_custom_command(OUTPUT ${CMAKE_BINARY_DIR}/modules/read_value 
10
					COMMAND ${CMAKE_C_COMPILER} -o  read_value read_value.c
11
					WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/modules 
12
					COMMENT "compiling read_value")
13
add_custom_target (read_value ALL
14
	DEPENDS ${CMAKE_BINARY_DIR}/modules/read_value)
15
	
16
add_subdirectory(lustre_files)
17

    
18