Added a subproject for executables invoked by test scripts.

This commit is contained in:
Ward Fisher 2013-07-24 16:27:14 +00:00
parent e362d8e6ee
commit f85d09520a
4 changed files with 10 additions and 2 deletions

View File

@ -162,6 +162,7 @@ MACRO(build_bin_test F)
PROPERTIES LINK_FLAGS_DEBUG " /NODEFAULTLIB:MSVCRT"
)
ENDIF()
SET_PROPERTY(TARGET ${F} PROPERTY LABELS invoked_by_scripts)
ENDMACRO()
# Binary tests which are used by a script looking for a specific name.
@ -171,6 +172,7 @@ MACRO(add_bin_test_no_prefix F)
IF(MSVC)
SET_PROPERTY(TEST ${F} PROPERTY FOLDER "tests/")
ENDIF()
ENDMACRO()
# Binary tests which are used by a script looking for a specific name.

View File

@ -1,6 +1,6 @@
# CTest/CDash configuration
SET(CTEST_PROJECT_SUBPROJECTS netcdf ncgen ncdump nccopy nc_test)
SET(CTEST_PROJECT_SUBPROJECTS netcdf ncgen ncdump nccopy nc_test invoked_by_scripts)
IF(USE_REMOTE_CDASH)
set(CTEST_PROJECT_NAME "NetCDF-C")

View File

@ -1,16 +1,23 @@
<Project name="WinNETCDF">
<SubProject name="netcdf">
</SubProject>
<SubProject name="invoked_by_scripts">
<Dependency name="netcdf" />
</SubProject>
<SubProject name="ncgen">
<Dependency name="netcdf"/>
<Dependency name="invoked_by_scripts">
</SubProject>
<SubProject name="ncdump">
<Dependency name="netcdf"/>
<Dependency name="invoked_by_scripts">
</SubProject>
<SubProject name="nccopy">
<Dependency name="netcdf" />
<Dependency name="invoked_by_scripts">
</SubProject>
<SubProject name="nc_test">
<Dependency name="netcdf" />
<Dependency name="invoked_by_scripts">
</SubProject>
</Project>

View File

@ -34,7 +34,6 @@ ENDIF()
# Build executables required for the shell scripts.
FOREACH(BINFILE ${TESTFILES})
build_bin_test(${BINFILE})
SET_PROPERTY(TARGET ${BINFILE} PROPERTY LABELS nc_test)
ENDFOREACH()
# Process single-file test files.