2022-02-10 22:07:11 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
2023-02-22 09:16:42 +00:00
|
|
|
# Copyright 2016 Blender Foundation
|
2016-01-03 10:07:30 +00:00
|
|
|
|
2022-07-26 04:47:12 +00:00
|
|
|
# Too noisy for code we don't maintain.
|
|
|
|
if(CMAKE_COMPILER_IS_GNUCC)
|
2022-09-26 02:26:48 +00:00
|
|
|
add_cxx_flag("-Wno-cast-function-type")
|
2022-07-26 04:47:12 +00:00
|
|
|
endif()
|
|
|
|
|
2016-01-03 10:07:30 +00:00
|
|
|
set(INC
|
2016-01-04 11:47:36 +00:00
|
|
|
src
|
|
|
|
src/gflags
|
2016-01-03 10:07:30 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
set(INC_SYS
|
|
|
|
)
|
|
|
|
|
|
|
|
set(SRC
|
2016-01-04 11:47:36 +00:00
|
|
|
src/gflags.cc
|
|
|
|
src/gflags_completions.cc
|
|
|
|
src/gflags_reporting.cc
|
2019-04-17 04:35:54 +00:00
|
|
|
|
2018-03-21 16:17:34 +00:00
|
|
|
src/gflags/config.h
|
2016-01-04 11:47:36 +00:00
|
|
|
src/gflags/gflags_completions.h
|
|
|
|
src/gflags/gflags_declare.h
|
|
|
|
src/gflags/gflags_gflags.h
|
|
|
|
src/gflags/gflags.h
|
|
|
|
src/mutex.h
|
|
|
|
src/util.h
|
2016-01-03 10:07:30 +00:00
|
|
|
)
|
|
|
|
|
2019-04-14 13:18:44 +00:00
|
|
|
set(LIB
|
|
|
|
)
|
|
|
|
|
2016-01-03 10:07:30 +00:00
|
|
|
if(WIN32)
|
|
|
|
list(APPEND SRC
|
2016-01-04 11:47:36 +00:00
|
|
|
src/windows_port.cc
|
|
|
|
src/windows_port.h
|
2016-01-03 10:07:30 +00:00
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2016-01-04 11:47:36 +00:00
|
|
|
add_definitions(${GFLAGS_DEFINES})
|
|
|
|
|
2019-04-14 13:18:44 +00:00
|
|
|
blender_add_lib(extern_gflags "${SRC}" "${INC}" "${INC_SYS}" "${LIB}")
|