Tue, 11 Feb 2025 21:59:06 +0100
end LTS for ucx 2.1
cmake_minimum_required(VERSION 3.10) project(ucx VERSION 2.1 DESCRIPTION "UAP Common Extensions") # Configuration set(CMAKE_C_STANDARD 11) set(CMAKE_C_STANDARD_REQUIRED 99) # Library add_subdirectory(src) # Tests enable_testing() add_subdirectory(test) add_test(NAME test COMMAND ucxtest WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/test") # Web Documentation add_subdirectory(docs/src) # API Documentation find_package(Doxygen) option(BUILD_DOCUMENTATION "Create API documentation." ${DOXYGEN_FOUND}) if(BUILD_DOCUMENTATION) if(NOT DOXYGEN_FOUND) message(FATAL_ERROR "Doxygen is needed to build the documentation.") endif() set(DOXY_INPUT ${CMAKE_SOURCE_DIR}/src) set(DOXY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/docs) set(DOXY_PROJECT_LOGO ${CMAKE_SOURCE_DIR}/uaplogo.png) configure_file(${CMAKE_SOURCE_DIR}/cmake_infile.doxygen ${CMAKE_BINARY_DIR}/Doxyfile) add_custom_target(docs-api COMMAND ${DOXYGEN_EXECUTABLE} WORKING_DIRECTORY ${CMAKE_BINARY_DIR} COMMENT "Generating API documentation with Doxygen") endif() add_custom_target(docs-all DEPENDS docs-html docs-api)