Computer Assited Medical Intervention Tool Kit  version 4.1
CamiTKAddSubDirectory.h
Go to the documentation of this file.
1 camitk_add_subdirectory(){ DirectoryName)
20  if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${DirectoryName}" AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${DirectoryName}/CMakeLists.txt")
21  set(SUBDIRECTORY_MESSAGE ${CMAKE_PROJECT_NAME})
22  if(CEP_NAME AND NOT ${CEP_NAME} STREQUAL ${CMAKE_PROJECT_NAME})
23  set(SUBDIRECTORY_MESSAGE "${SUBDIRECTORY_MESSAGE} ${CEP_NAME}")
24  endif()
25  add_subdirectory(${DirectoryName})
26  endif()
27 end(){)
cmake modules macros camitk test endif() add_custom_target(camitk-ce-iwyu COMMAND $
Definition: CamiTKIncludeWhatYouUse.h:37
camitk_add_subdirectory()
camitk_add_subdirectory is a utility macro that add a source subdirectory only if: ...
Definition: CamiTKAddSubDirectory.h:19