1 2 3 4 5 6 7 8 9 10 11 12
function(IncludeScope_IncludeOnly) include(ExternalProject) endfunction() IncludeScope_IncludeOnly() ExternalProject_Add(MyProj SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR} CONFIGURE_COMMAND "" BUILD_COMMAND "" INSTALL_COMMAND "" )