Computer Assited Medical Intervention Tool Kit  version 4.1
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_APPLICATION_SUBPROJECTS})
56 # endif()
57 
58  # Write down the Project.xml file
59  set(CAMITK_SUBPROJECTS ${CAMITK_SUBPROJECTS} "\n</Project>")
60  set(CAMITK_SUBPROJECTS_FILENAME "${CMAKE_BINARY_DIR}/Project.xml")
61  file(WRITE ${CAMITK_SUBPROJECTS_FILENAME} ${CAMITK_SUBPROJECTS})
62  message(STATUS "Generated ${CAMITK_SUBPROJECTS_FILENAME} for project description")
63 
64  # Write down subprojects.cmake file
65  list(REMOVE_DUPLICATES CAMITK_TARGETS)
66  set(CAMITK_SUBPROJECTS_FILENAME "${CMAKE_BINARY_DIR}/Subprojects.cmake")
67  file(WRITE ${CAMITK_SUBPROJECTS_FILENAME} "set(CAMITK_TARGETS ${CAMITK_TARGETS})")
68  message(STATUS "Generated ${CAMITK_SUBPROJECTS_FILENAME} for subprojects listing")
69  endif()
70 end(){)
Definition: Action.cpp:36
cmake modules macros camitk test endif() add_custom_target(camitk-ce-iwyu COMMAND $
Definition: CamiTKIncludeWhatYouUse.h:37
camitk_write_manifest_data()
macro camitk_write_manifest_data validates the xml_subprojects variable by ending its xml tag i...
Definition: CamiTKWriteManifestData.h:15
#define a