Computer Assisted Medical Intervention Tool Kit  version 5.2
CamiTKWriteManifestData.h
Go to the documentation of this file.
16 
17  set(options CEP_SET)
18  set(oneValueArgs "")
19  set(multiValueArgs "")
20  cmake_parse_arguments(ADD_SUB_PROJECT_VALIDATE "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN} )
21 
22  # if this a standalone CEP, then write the cdash xml report
23  if(NOT CAMITK_EXTENSION_PROJECT_SET OR ADD_SUB_PROJECT_VALIDATE_CEP_SET)
24 
25  # Add the CDash dependencies in the correct order
26  set(CAMITK_SUBPROJECTS ${CAMITK_SUBPROJECTS} ${CAMITK_CORE_LIBRARY_SUBPROJECTS})
27  set(CAMITK_SUBPROJECTS ${CAMITK_SUBPROJECTS} ${CAMITK_CEP_LIBRARY_SUBPROJECTS})
28  set(CAMITK_SUBPROJECTS ${CAMITK_SUBPROJECTS} ${CAMITK_APPLICATION_ACTION_SUBPROJECTS})
29 
30 # # Add camitk communityedition CEP specific subprojects
31 # if(${CAMITK_EXTENSION_PROJECT_SET_NAME} MATCHES "camitk-communityedition")
32 # # Add application-testcomponents
33 # set(CAMITK_SUBPROJECTS ${CAMITK_SUBPROJECTS} "\n <SubProject name=\"application-testcomponents\"> ")
34 # set(CAMITK_SUBPROJECTS ${CAMITK_SUBPROJECTS} "\n <Dependency name=\"library-camitkcore \"/>")
35 # set(CAMITK_SUBPROJECTS ${CAMITK_SUBPROJECTS} "\n <Dependency name=\"action-application \"/>")
36 # set(CAMITK_SUBPROJECTS ${CAMITK_SUBPROJECTS} " </SubProject>")
37 # set(CAMITK_SUBPROJECTS ${CAMITK_SUBPROJECTS} ${CAMITK_COMPONENT_SUBPROJECTS})
38 # # Add application-testactions
39 # set(CAMITK_SUBPROJECTS ${CAMITK_SUBPROJECTS} "\n <SubProject name=\"application-testactions\"> ")
40 # list(REMOVE_DUPLICATES CAMITK_COMPONENT_TARGETS) # avoid duplicates
41 # foreach(DEPENDENCY ${CAMITK_COMPONENT_TARGETS})
42 # set(CAMITK_SUBPROJECTS ${CAMITK_SUBPROJECTS} "\n <Dependency name=\"${DEPENDENCY}\"/>")
43 # endforeach()
44 # set(CAMITK_SUBPROJECTS ${CAMITK_SUBPROJECTS} " </SubProject>")
45 # set(CAMITK_SUBPROJECTS ${CAMITK_SUBPROJECTS} ${CAMITK_ACTION_SUBPROJECTS})
46 # set(CAMITK_SUBPROJECTS ${CAMITK_SUBPROJECTS} ${CAMITK_APPLICATION_SUBPROJECTS})
47 #
48 # # Add packaging source, packaging and api_doc target (COMMENTED > let's be frank, those are not compiled anymore on VMs)
49 # # set(CAMITK_SUBPROJECTS ${CAMITK_SUBPROJECTS} "\n <SubProject name=\"package-source\">\n </SubProject>")
50 # # set(CAMITK_SUBPROJECTS ${CAMITK_SUBPROJECTS} "\n <SubProject name=\"package\">\n </SubProject>")
51 # # set(CAMITK_SUBPROJECTS ${CAMITK_SUBPROJECTS} "\n <SubProject name=\"camitk-ce-api-doc\">\n </SubProject>")
52 # else() # Other external CEP
53  set(CAMITK_SUBPROJECTS ${CAMITK_SUBPROJECTS} ${CAMITK_COMPONENT_SUBPROJECTS})
54  set(CAMITK_SUBPROJECTS ${CAMITK_SUBPROJECTS} ${CAMITK_ACTION_SUBPROJECTS})
55  set(CAMITK_SUBPROJECTS ${CAMITK_SUBPROJECTS} ${CAMITK_VIEWER_SUBPROJECTS})
56  set(CAMITK_SUBPROJECTS ${CAMITK_SUBPROJECTS} ${CAMITK_APPLICATION_SUBPROJECTS})
57 # endif()
58 
59  # Write down the Project.xml file
60  set(CAMITK_SUBPROJECTS ${CAMITK_SUBPROJECTS} "</Project>")
61  set(CAMITK_SUBPROJECTS_FILENAME "${CMAKE_BINARY_DIR}/Project.xml")
62  file(WRITE ${CAMITK_SUBPROJECTS_FILENAME} ${CAMITK_SUBPROJECTS})
63  message(STATUS "Generated ${CAMITK_SUBPROJECTS_FILENAME} for project description")
64 
65  # Write down subprojects.cmake file
66  list(REMOVE_DUPLICATES CAMITK_TARGETS)
67  set(CAMITK_SUBPROJECTS_FILENAME "${CMAKE_BINARY_DIR}/Subprojects.cmake")
68  file(WRITE ${CAMITK_SUBPROJECTS_FILENAME} "set(CAMITK_TARGETS ${CAMITK_TARGETS})")
69  message(STATUS "Generated ${CAMITK_SUBPROJECTS_FILENAME} for subprojects listing")
70  endif()
71 end(){)
cmake modules macros camitk test endif() add_custom_target(camitk-ce-iwyu COMMAND $
Definition: CamiTKIncludeWhatYouUse.h:37
#define a
iwyu out CACHE PATH Output filename for include what you use set(CMAKE_CXX_INCLUDE_WHAT_YOU_USE ${IWYU_EXECUTABLE}) if(NOT EXISTS $
Definition: CamiTKIncludeWhatYouUse.h:22
camitk_write_manifest_data()
macro camitk_write_manifest_data validates the xml_subprojects variable by ending its xml tag i....
Definition: CamiTKWriteManifestData.h:15
Definition: Action.cpp:36