2 # - Include a custom CMake file relative to the current source directory.
3 # - If no filename is provided, CMakeListsCustom.txt is used.
5 macro( ADD_CUSTOM_CMAKE_INCLUDE )
6 if( ${ARGC} GREATER 0 )
7 set( _file_list ${ARGN} )
9 set( _file_list CMakeListsCustom.txt )
11 foreach (_include ${_file_list})
12 set( _include_file ${CMAKE_CURRENT_SOURCE_DIR}/${_include} )
13 if( EXISTS ${_include_file} )
14 message ( STATUS "Custom file found, including: ${_include_file}" )
15 include( ${_include_file} )