1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
|
# Check if examples are enabled
if(NOT OPTION_BUILD_EXAMPLES)
return()
endif()
#
# Configuration for all sub-projects
#
# External packages
find_package(cpplocate)
if (NOT cpplocate_FOUND)
message("Examples skipped: cpplocate not found")
return()
endif()
#
# Module information file
#
generate_module_info(${META_PROJECT_NAME}
VALUES
name "${META_PROJECT_NAME}"
version "${META_VERSION}"
description "${META_PROJECT_DESCRIPTION}"
author "${META_AUTHOR_ORGANIZATION}"
BUILD_VALUES
dataPath "${PROJECT_SOURCE_DIR}/data"
INSTALL_VALUES
dataPath "\${ModulePath}/data"
)
export_module_info(${META_PROJECT_NAME}
TARGET ${META_PROJECT_NAME}
FOLDER "ModuleInfo"
)
install_module_info(${META_PROJECT_NAME}
DESTINATION ${INSTALL_ROOT}
COMPONENT examples_data
)
#
# Sub-projects
#
# Examples
add_subdirectory("callbacks")
add_subdirectory("comparison")
add_subdirectory("cubescape")
add_subdirectory("cubescape-log")
add_subdirectory("cubescape-qt")
|