19 set(multiValueArgs
"")
20 cmake_parse_arguments(ADD_SUB_PROJECT_VALIDATE
"${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN} )
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)
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})
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}\"/>")
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})
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})
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")
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")
cmake modules macros camitk test endif() add_custom_target(camitk-ce-iwyu COMMAND $
Definition: CamiTKIncludeWhatYouUse.h:37
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