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_APPLICATION_SUBPROJECTS})
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")
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")
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