forked from osmocom/wireshark
21 lines
685 B
CMake
21 lines
685 B
CMake
|
#
|
||
|
# - Include a custom CMake file relative to the current source directory.
|
||
|
# - If no filename is provided, CMakeListsCustom.txt is used.
|
||
|
#
|
||
|
macro( ADD_CUSTOM_CMAKE_INCLUDE )
|
||
|
if( ${ARGN} )
|
||
|
set( _file_list ${ARGN} )
|
||
|
else()
|
||
|
set( _file_list CMakeListsCustom.txt )
|
||
|
endif()
|
||
|
foreach (_include ${_file_list})
|
||
|
set( _include_file ${CMAKE_CURRENT_SOURCE_DIR}/${_include} )
|
||
|
if( EXISTS ${_include_file} )
|
||
|
message ( STATUS "Including ${_include_file}" )
|
||
|
include( ${_include_file} )
|
||
|
else()
|
||
|
message ( STATUS "No custom file found in ${CMAKE_CURRENT_SOURCE_DIR}" )
|
||
|
endif()
|
||
|
endforeach()
|
||
|
endmacro()
|