61 lines
1.5 KiB
CMake
61 lines
1.5 KiB
CMake
# Target added only to have the files available in Visual Studio
|
|
# I'm not setting correctly the include directory property to force samples to include using "../" as they are currently doing.
|
|
add_custom_target(HP_CommonHeaders)
|
|
target_sources(HP_CommonHeaders PRIVATE common.hpp CommonInit.h)
|
|
|
|
# Sample list - Standard
|
|
set(SAMPLE_STANDARD_LIST
|
|
CreatePRCCubes
|
|
DemoFunctionalities
|
|
HelloWorld
|
|
PublishImportExport
|
|
U3DWithAnimation
|
|
UserDefinedViews
|
|
)
|
|
|
|
foreach(SAMPLE ${SAMPLE_STANDARD_LIST})
|
|
add_subdirectory(${SAMPLE})
|
|
endforeach()
|
|
|
|
# Replace CreatePRCCubes with the correct name of the target
|
|
list(TRANSFORM SAMPLE_STANDARD_LIST REPLACE CreatePRCCubes CreatePRCCubesPublish)
|
|
|
|
|
|
set(SAMPLE_ADVANCED_LIST
|
|
AnimWorkinstruction
|
|
DemoDataModel
|
|
DemoFunctionalitiesAdv
|
|
DemoLayers
|
|
Export3DToHtml
|
|
ExportPDFToHtml
|
|
manufacturing_mbe
|
|
PDFWithBOMAndCarousel
|
|
UpdateData
|
|
)
|
|
|
|
foreach(SAMPLE ${SAMPLE_ADVANCED_LIST})
|
|
add_subdirectory(${SAMPLE})
|
|
endforeach()
|
|
|
|
|
|
set(SAMPLE_LIST
|
|
${SAMPLE_STANDARD_LIST}
|
|
${SAMPLE_ADVANCED_LIST}
|
|
)
|
|
|
|
add_custom_target(Sample_HOOPS_Publish
|
|
DEPENDS ${SAMPLE_LIST}
|
|
)
|
|
|
|
set(SAMPLE_LIST_Publish ${SAMPLE_LIST} PARENT_SCOPE)
|
|
|
|
# Add project folder for IDEs
|
|
set_target_properties(HP_CommonHeaders PROPERTIES FOLDER "Publish")
|
|
set_target_properties(Sample_HOOPS_Publish PROPERTIES FOLDER "Publish")
|
|
foreach(SAMPLE ${SAMPLE_STANDARD_LIST})
|
|
set_target_properties(${SAMPLE} PROPERTIES FOLDER "Publish/Samples/Standard")
|
|
endforeach()
|
|
foreach(SAMPLE ${SAMPLE_ADVANCED_LIST})
|
|
set_target_properties(${SAMPLE} PROPERTIES FOLDER "Publish/Samples/Advanced")
|
|
endforeach()
|