* Updated copyright headers
* Revert "Fixed linker warnings in docs snippets on Windows (#15119)"
This reverts commit 372699ec49.
20 lines
593 B
CMake
20 lines
593 B
CMake
# Copyright (C) 2018-2023 Intel Corporation
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
project(cnpy)
|
|
|
|
set(TARGET_NAME "cnpy")
|
|
|
|
add_library(${TARGET_NAME} STATIC cnpy.cpp)
|
|
|
|
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "^(Apple)?Clang$")
|
|
target_compile_options(${TARGET_NAME} PUBLIC -Wno-unused-variable
|
|
PRIVATE -Wno-all)
|
|
endif()
|
|
|
|
target_link_libraries(${TARGET_NAME} PUBLIC zlib::zlib)
|
|
target_include_directories(${TARGET_NAME} PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}")
|
|
|
|
set_target_properties(${TARGET_NAME} PROPERTIES FOLDER thirdparty)
|