filter out Test and Testsuite directory in release mode

This commit is contained in:
Sébastien Loriot 2019-01-14 15:47:51 +01:00
parent 0cb112d941
commit decdb9dd95
1 changed files with 4 additions and 0 deletions

View File

@ -30,6 +30,10 @@ function(process_package pkg)
set(afile ${pkg_dir}/${f})
get_filename_component(afile_dir_tmp ${afile} PATH)
string(REPLACE "${pkg_dir}" "" afile_dir ${afile_dir_tmp})
# skip test files not shipped with a release
if (NOT TESTSUITE AND ("${afile_dir}" STREQUAL "/include/CGAL/Test" OR "${afile_dir}" STREQUAL "/include/CGAL/Testsuite") )
continue()
endif()
if(NOT IS_DIRECTORY ${release_dir}/${afile_dir})
file(MAKE_DIRECTORY ${release_dir}/${afile_dir})
endif()