1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/kunpengcompute-xucg

Клонировать/Скачать
CMakeLists.txt 1.6 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
TobeChao Отправлено 08.02.2025 11:33 6ffefa8
#
# Copyright (c) Huawei Technologies Co., Ltd. 2022-2024. All rights reserved.
#
cmake_minimum_required(VERSION 2.8.12)
if(POLICY CMP0048)
set(SUPPORT_CMAKE3 "ON")
else()
set(SUPPORT_CMAKE3 "OFF")
endif()
if(SUPPORT_CMAKE3 MATCHES "ON")
cmake_policy(SET CMP0048 NEW)
project(xucg VERSION 25.0.0)
else()
project(xucg C CXX)
set(PROJECT_VERSION_MAJOR 25)
set(PROJECT_VERSION_MINOR 0)
set(PROJECT_VERSION_PATCH 0)
endif()
# Define options
option(UCG_BUILD_TOOLS "Build ucg tools" ON)
option(UCG_BUILD_TESTS "Build ucg tests" ON)
# Set base include search path.
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src)
if (IS_DIRECTORY ${UCG_BUILD_WITH_UCX})
# Currently the util & tests header file includes some UCS header file,
# so the path of the UCS header file is needed.
include_directories(${UCG_BUILD_WITH_UCX}/include)
endif()
if (IS_DIRECTORY ${UCG_BUILD_WITH_HCCL})
# Currently the tests header file includes some HCCL header file,
# so the path of the HCCL header file is needed.
include_directories(${UCG_BUILD_WITH_HCCL}/include)
endif()
# Set installation directories
set(UCG_INSTALL_BINDIR ${CMAKE_INSTALL_PREFIX}/bin)
set(UCG_INSTALL_INCLUDEDIR ${CMAKE_INSTALL_PREFIX}/include)
set(UCG_INSTALL_LIBDIR ${CMAKE_INSTALL_PREFIX}/lib)
set(UCG_INSTALL_PLANCDIR ${CMAKE_INSTALL_PREFIX}/lib/planc)
# Make all warnings into errors
add_compile_options(-Wall -Werror)
# Other targets depend on target under src.
add_subdirectory(src)
if (UCG_BUILD_TOOLS MATCHES "ON")
add_subdirectory(tools)
endif ()
if (UCG_BUILD_TESTS MATCHES "ON")
enable_testing()
add_subdirectory(tests)
endif ()

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/kunpengcompute-xucg.git
git@api.gitlife.ru:oschina-mirror/kunpengcompute-xucg.git
oschina-mirror
kunpengcompute-xucg
kunpengcompute-xucg
trunk/v25.0.0-huawei