From 26dc0be34a62b22890a99736825dd31c4725a62d Mon Sep 17 00:00:00 2001 From: Norbert Podhorszki Date: Mon, 22 May 2017 15:15:29 -0400 Subject: [PATCH] even more fixes to build test suite with cmake --- tests/suite/programs/examples/CMakeLists.txt | 5 +++++ tests/suite/programs/examples/global_array/CMakeLists.txt | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 tests/suite/programs/examples/CMakeLists.txt diff --git a/tests/suite/programs/examples/CMakeLists.txt b/tests/suite/programs/examples/CMakeLists.txt new file mode 100644 index 000000000..8cdb4d7c5 --- /dev/null +++ b/tests/suite/programs/examples/CMakeLists.txt @@ -0,0 +1,5 @@ +add_subdirectory(attributes) +add_subdirectory(scalars) +add_subdirectory(global_array) +add_subdirectory(global_array_time) +add_subdirectory(local_array) diff --git a/tests/suite/programs/examples/global_array/CMakeLists.txt b/tests/suite/programs/examples/global_array/CMakeLists.txt index 83f0aa3c0..dfecd57b3 100644 --- a/tests/suite/programs/examples/global_array/CMakeLists.txt +++ b/tests/suite/programs/examples/global_array/CMakeLists.txt @@ -51,7 +51,7 @@ if(BUILD_FORTRAN) target_link_libraries(global_array_write_F adiosf ${ADIOSLIB_LDADD}) add_custom_command( OUTPUT gwrite_temperature.fh - COMMAND ${PROJECT_SOURCE_DIR}/utils/gpp/gpp.py ${PROJECT_SOURCE_DIR}/tests/suite/programs/examples/global_array/global_array_F.xml + COMMAND ${PROJECT_BINARY_DIR}/utils/gpp/gpp.py ${PROJECT_SOURCE_DIR}/tests/suite/programs/examples/global_array/global_array_F.xml DEPENDS global_array_F.xml ) add_executable(global_array_write_noxml_F global_array_write_noxml_F.F90)