1# (C) Copyright 2011- ECMWF. 2# 3# This software is licensed under the terms of the Apache Licence Version 2.0 4# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. 5# In applying this licence, ECMWF does not waive the privileges and immunities 6# granted to it by virtue of its status as an intergovernmental organisation nor 7# does it submit to any jurisdiction. 8 9set( EC_ALL_EXES "" CACHE INTERNAL "" ) 10set( EC_ALL_LIBS "" CACHE INTERNAL "" ) 11 12############################################################################################ 13# define libs and execs targets 14 15macro( ecbuild_define_libs_and_execs_targets ) 16 17 add_custom_target( libs ) 18 19 if( EC_ALL_LIBS ) 20 add_dependencies( libs ${EC_ALL_LIBS} ) 21 endif() 22 23 add_custom_target( execs ) 24 25 if( EC_ALL_EXECS ) 26 add_dependencies( execs ${EC_ALL_EXES} ) 27 endif() 28 29endmacro(ecbuild_define_libs_and_execs_targets) 30