diff --git a/CMakeLists.txt b/CMakeLists.txt index 095ed70d8c..faea6037bf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,8 @@ -# "More Modern" CMake version +# We require this to get object library link library support and +# combined python 2 + 3 support +# We require this to get object library link library support and +# combined python 2 + 3 support cmake_minimum_required(VERSION 3.12) # Hint: This can be set to enable custom find_package diff --git a/IlmBase/CMakeLists.txt b/IlmBase/CMakeLists.txt index e87daa2769..983e7e208b 100644 --- a/IlmBase/CMakeLists.txt +++ b/IlmBase/CMakeLists.txt @@ -1,4 +1,8 @@ -# "More Modern" CMake version +# SPDX-License-Identifier: BSD-3-Clause +# Copyright Contributors to the OpenEXR Project. + +# We require this to get object library link library support and +# combined python 2 + 3 support cmake_minimum_required(VERSION 3.12) # we include this first to parse configure.ac and extract the version diff --git a/IlmBase/Half/CMakeLists.txt b/IlmBase/Half/CMakeLists.txt index eaaf14a2d6..38559e1e07 100644 --- a/IlmBase/Half/CMakeLists.txt +++ b/IlmBase/Half/CMakeLists.txt @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright Contributors to the OpenEXR Project. add_executable(eLut eLut.cpp) target_compile_features(eLut PUBLIC cxx_std_${OPENEXR_CXX_STANDARD}) diff --git a/IlmBase/HalfTest/CMakeLists.txt b/IlmBase/HalfTest/CMakeLists.txt index 246f543d09..d4c500b7f8 100644 --- a/IlmBase/HalfTest/CMakeLists.txt +++ b/IlmBase/HalfTest/CMakeLists.txt @@ -1,7 +1,5 @@ -## -## SPDX-License-Identifier: BSD-3-Clause -## Copyright Contributors to the OpenEXR Project. -## +# SPDX-License-Identifier: BSD-3-Clause +# Copyright Contributors to the OpenEXR Project. add_executable(HalfTest main.cpp diff --git a/IlmBase/Iex/CMakeLists.txt b/IlmBase/Iex/CMakeLists.txt index 902f8f48f1..423f4faf58 100644 --- a/IlmBase/Iex/CMakeLists.txt +++ b/IlmBase/Iex/CMakeLists.txt @@ -1,3 +1,6 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright Contributors to the OpenEXR Project. + ilmbase_define_library(Iex PRIV_EXPORT IEX_EXPORTS CURDIR ${CMAKE_CURRENT_SOURCE_DIR} diff --git a/IlmBase/IexMath/CMakeLists.txt b/IlmBase/IexMath/CMakeLists.txt index 5f58c92d39..ec987de2f5 100644 --- a/IlmBase/IexMath/CMakeLists.txt +++ b/IlmBase/IexMath/CMakeLists.txt @@ -1,3 +1,6 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright Contributors to the OpenEXR Project. + ilmbase_define_library(IexMath PRIV_EXPORT IEXMATH_EXPORTS CURDIR ${CMAKE_CURRENT_SOURCE_DIR} diff --git a/IlmBase/IexTest/CMakeLists.txt b/IlmBase/IexTest/CMakeLists.txt index 0817df9153..db5bc655e4 100644 --- a/IlmBase/IexTest/CMakeLists.txt +++ b/IlmBase/IexTest/CMakeLists.txt @@ -1,3 +1,6 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright Contributors to the OpenEXR Project. + add_executable(IexTest main.cpp testBaseExc.cpp diff --git a/IlmBase/IlmThread/CMakeLists.txt b/IlmBase/IlmThread/CMakeLists.txt index 85f18f5373..895eb81a0c 100644 --- a/IlmBase/IlmThread/CMakeLists.txt +++ b/IlmBase/IlmThread/CMakeLists.txt @@ -1,3 +1,6 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright Contributors to the OpenEXR Project. + ilmbase_define_library(IlmThread PRIV_EXPORT ILMTHREAD_EXPORTS CURDIR ${CMAKE_CURRENT_SOURCE_DIR} diff --git a/IlmBase/Imath/CMakeLists.txt b/IlmBase/Imath/CMakeLists.txt index 300cbd0342..9eccc10919 100644 --- a/IlmBase/Imath/CMakeLists.txt +++ b/IlmBase/Imath/CMakeLists.txt @@ -1,3 +1,6 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright Contributors to the OpenEXR Project. + ilmbase_define_library(Imath PRIV_EXPORT IMATH_EXPORTS CURDIR ${CMAKE_CURRENT_SOURCE_DIR} diff --git a/IlmBase/ImathTest/CMakeLists.txt b/IlmBase/ImathTest/CMakeLists.txt index 2e78c4e355..3389ceae88 100644 --- a/IlmBase/ImathTest/CMakeLists.txt +++ b/IlmBase/ImathTest/CMakeLists.txt @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright Contributors to the OpenEXR Project. add_executable(ImathTest main.cpp diff --git a/IlmBase/config/CMakeLists.txt b/IlmBase/config/CMakeLists.txt index dd2b6ad157..e20fa830e8 100644 --- a/IlmBase/config/CMakeLists.txt +++ b/IlmBase/config/CMakeLists.txt @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright Contributors to the OpenEXR Project. include(CheckIncludeFiles) include(CheckSymbolExists) diff --git a/IlmBase/config/IlmBaseConfig.h.in b/IlmBase/config/IlmBaseConfig.h.in index 70fead829a..8f7b25d35e 100644 --- a/IlmBase/config/IlmBaseConfig.h.in +++ b/IlmBase/config/IlmBaseConfig.h.in @@ -1,8 +1,13 @@ +// SPDX-License-Identifier: BSD-3-Clause +// Copyright Contributors to the OpenEXR Project. + // This file is auto-generated by the configure step #ifndef INCLUDED_ILMBASE_CONFIG_H #define INCLUDED_ILMBASE_CONFIG_H 1 +#pragma once + // // Define and set to 1 if the target system has c++11/14 support // and you want IlmBase to NOT use it's features diff --git a/IlmBase/config/IlmBaseConfig.h.in_cmake b/IlmBase/config/IlmBaseConfig.h.in_cmake index 18f5f7ffbe..bd4759fb1b 100644 --- a/IlmBase/config/IlmBaseConfig.h.in_cmake +++ b/IlmBase/config/IlmBaseConfig.h.in_cmake @@ -1,8 +1,13 @@ +// SPDX-License-Identifier: BSD-3-Clause +// Copyright Contributors to the OpenEXR Project. + // This file is auto-generated by the cmake configure step #ifndef INCLUDED_ILMBASE_CONFIG_H #define INCLUDED_ILMBASE_CONFIG_H 1 +#pragma once + // // Options / configuration based on O.S. / compiler ///////////////////// diff --git a/IlmBase/config/IlmBaseConfigInternal.h.in b/IlmBase/config/IlmBaseConfigInternal.h.in index 75b8646116..ea6784796e 100644 --- a/IlmBase/config/IlmBaseConfigInternal.h.in +++ b/IlmBase/config/IlmBaseConfigInternal.h.in @@ -3,6 +3,7 @@ // Copyright Contributors to the OpenEXR Project. // +#pragma once // // Dealing with FPEs @@ -10,4 +11,3 @@ #undef HAVE_UCONTEXT_H #undef ILMBASE_HAVE_CONTROL_REGISTER_SUPPORT - diff --git a/IlmBase/config/IlmBaseConfigInternal.h.in_cmake b/IlmBase/config/IlmBaseConfigInternal.h.in_cmake index 84d8aa2f56..49b889166c 100644 --- a/IlmBase/config/IlmBaseConfigInternal.h.in_cmake +++ b/IlmBase/config/IlmBaseConfigInternal.h.in_cmake @@ -1,3 +1,7 @@ +// SPDX-License-Identifier: BSD-3-Clause +// Copyright Contributors to the OpenEXR Project. + +#pragma once // // Dealing with FPEs diff --git a/IlmBase/config/IlmBaseSetup.cmake b/IlmBase/config/IlmBaseSetup.cmake index a58b482c26..78e6559648 100644 --- a/IlmBase/config/IlmBaseSetup.cmake +++ b/IlmBase/config/IlmBaseSetup.cmake @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright Contributors to the OpenEXR Project. include(GNUInstallDirs) diff --git a/IlmBase/config/LibraryDefine.cmake b/IlmBase/config/LibraryDefine.cmake index 0906cefc76..2953f90634 100644 --- a/IlmBase/config/LibraryDefine.cmake +++ b/IlmBase/config/LibraryDefine.cmake @@ -1,3 +1,6 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright Contributors to the OpenEXR Project. + # NB: This function has a number if IlmBase specific names / variables # in it, so be careful copying... function(ILMBASE_DEFINE_LIBRARY libname) diff --git a/IlmBase/config/ParseConfigure.cmake b/IlmBase/config/ParseConfigure.cmake index 6ffae357e9..9e12041f12 100644 --- a/IlmBase/config/ParseConfigure.cmake +++ b/IlmBase/config/ParseConfigure.cmake @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright Contributors to the OpenEXR Project. file(READ configure.ac CONFIGURE_AC_CONTENTS) string(REGEX MATCH "AC_INIT\\(IlmBase,[ ]*([0-9]+).([0-9]+).([0-9]+)" DUMMY ${CONFIGURE_AC_CONTENTS}) diff --git a/OpenEXR/CMakeLists.txt b/OpenEXR/CMakeLists.txt index f5db01796a..0e7b48c6f0 100644 --- a/OpenEXR/CMakeLists.txt +++ b/OpenEXR/CMakeLists.txt @@ -1,4 +1,8 @@ -# "More Modern" CMake version +# SPDX-License-Identifier: BSD-3-Clause +# Copyright Contributors to the OpenEXR Project. + +# We require this to get object library link library support and +# combined python 2 + 3 support cmake_minimum_required(VERSION 3.12) # we include this first to parse configure.ac and extract the version diff --git a/OpenEXR/IlmImf/CMakeLists.txt b/OpenEXR/IlmImf/CMakeLists.txt index cd8e4f6e30..9e91ec7874 100644 --- a/OpenEXR/IlmImf/CMakeLists.txt +++ b/OpenEXR/IlmImf/CMakeLists.txt @@ -1,3 +1,6 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright Contributors to the OpenEXR Project. + add_executable(b44ExpLogTable b44ExpLogTable.cpp) target_link_libraries(b44ExpLogTable PRIVATE OpenEXR::Config IlmBase::Half IlmBase::IlmThread IlmBase::Iex) # TODO: Old file had logic to skip these if the file already exists diff --git a/OpenEXR/IlmImfExamples/CMakeLists.txt b/OpenEXR/IlmImfExamples/CMakeLists.txt index 8e96a23348..334691149c 100644 --- a/OpenEXR/IlmImfExamples/CMakeLists.txt +++ b/OpenEXR/IlmImfExamples/CMakeLists.txt @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright Contributors to the OpenEXR Project. add_executable(IlmImfExamples drawImage.cpp diff --git a/OpenEXR/IlmImfFuzzTest/CMakeLists.txt b/OpenEXR/IlmImfFuzzTest/CMakeLists.txt index d3a5201d10..f27532ee12 100644 --- a/OpenEXR/IlmImfFuzzTest/CMakeLists.txt +++ b/OpenEXR/IlmImfFuzzTest/CMakeLists.txt @@ -1,3 +1,6 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright Contributors to the OpenEXR Project. + add_executable( IlmImfFuzzTest fuzzFile.cpp main.cpp diff --git a/OpenEXR/IlmImfTest/CMakeLists.txt b/OpenEXR/IlmImfTest/CMakeLists.txt index a0907734a7..470feecf95 100644 --- a/OpenEXR/IlmImfTest/CMakeLists.txt +++ b/OpenEXR/IlmImfTest/CMakeLists.txt @@ -1,3 +1,6 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright Contributors to the OpenEXR Project. + add_executable(IlmImfTest compareB44.cpp compareDwa.cpp diff --git a/OpenEXR/IlmImfUtil/CMakeLists.txt b/OpenEXR/IlmImfUtil/CMakeLists.txt index b6fc5d9b20..633498792a 100644 --- a/OpenEXR/IlmImfUtil/CMakeLists.txt +++ b/OpenEXR/IlmImfUtil/CMakeLists.txt @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright Contributors to the OpenEXR Project. openexr_define_library(IlmImfUtil PRIV_EXPORT ILMIMFUTIL_EXPORTS diff --git a/OpenEXR/IlmImfUtilTest/CMakeLists.txt b/OpenEXR/IlmImfUtilTest/CMakeLists.txt index d92e12e5c0..e621a3f2d5 100644 --- a/OpenEXR/IlmImfUtilTest/CMakeLists.txt +++ b/OpenEXR/IlmImfUtilTest/CMakeLists.txt @@ -1,3 +1,6 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright Contributors to the OpenEXR Project. + add_executable(IlmImfUtilTest main.cpp testFlatImage.cpp diff --git a/OpenEXR/config/CMakeLists.txt b/OpenEXR/config/CMakeLists.txt index 12382102c4..8f22ab510d 100644 --- a/OpenEXR/config/CMakeLists.txt +++ b/OpenEXR/config/CMakeLists.txt @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright Contributors to the OpenEXR Project. include(CheckIncludeFiles) include(CheckSymbolExists) diff --git a/OpenEXR/config/LibraryDefine.cmake b/OpenEXR/config/LibraryDefine.cmake index f19218fa4d..7d55e1681a 100644 --- a/OpenEXR/config/LibraryDefine.cmake +++ b/OpenEXR/config/LibraryDefine.cmake @@ -1,3 +1,6 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright Contributors to the OpenEXR Project. + # NB: This function has a number of specific names / variables # in it, so be careful copying... function(OPENEXR_DEFINE_LIBRARY libname) diff --git a/OpenEXR/config/OpenEXRConfig.h.in b/OpenEXR/config/OpenEXRConfig.h.in index 08497eee41..bfe8183ec0 100644 --- a/OpenEXR/config/OpenEXRConfig.h.in +++ b/OpenEXR/config/OpenEXRConfig.h.in @@ -1,8 +1,13 @@ +// SPDX-License-Identifier: BSD-3-Clause +// Copyright Contributors to the OpenEXR Project. + // This file is auto-generated by the configure step #ifndef INCLUDED_OPENEXR_CONFIG_H #define INCLUDED_OPENEXR_CONFIG_H 1 +#pragma once + // // Current internal library namepace name // diff --git a/OpenEXR/config/OpenEXRConfig.h.in_cmake b/OpenEXR/config/OpenEXRConfig.h.in_cmake index f64dc5303d..ddf4b55fae 100644 --- a/OpenEXR/config/OpenEXRConfig.h.in_cmake +++ b/OpenEXR/config/OpenEXRConfig.h.in_cmake @@ -1,8 +1,13 @@ +// SPDX-License-Identifier: BSD-3-Clause +// Copyright Contributors to the OpenEXR Project. + // This file is auto-generated by the configure step #ifndef INCLUDED_OPENEXR_CONFIG_H #define INCLUDED_OPENEXR_CONFIG_H 1 +#pragma once + // // Current internal library namepace name // diff --git a/OpenEXR/config/OpenEXRConfigInternal.h.in b/OpenEXR/config/OpenEXRConfigInternal.h.in index 91b402e30d..2107c5c7ea 100644 --- a/OpenEXR/config/OpenEXRConfigInternal.h.in +++ b/OpenEXR/config/OpenEXRConfigInternal.h.in @@ -1,3 +1,8 @@ +// SPDX-License-Identifier: BSD-3-Clause +// Copyright Contributors to the OpenEXR Project. + +#pragma once + // // SPDX-License-Identifier: BSD-3-Clause // Copyright Contributors to the OpenEXR Project. diff --git a/OpenEXR/config/OpenEXRConfigInternal.h.in_cmake b/OpenEXR/config/OpenEXRConfigInternal.h.in_cmake index df31f068ed..bfe3b3fbff 100644 --- a/OpenEXR/config/OpenEXRConfigInternal.h.in_cmake +++ b/OpenEXR/config/OpenEXRConfigInternal.h.in_cmake @@ -1,8 +1,13 @@ +// SPDX-License-Identifier: BSD-3-Clause +// Copyright Contributors to the OpenEXR Project. + // This file is auto-generated by the configure step #ifndef INCLUDED_OPENEXR_INTERNAL_CONFIG_H #define INCLUDED_OPENEXR_INTERNAL_CONFIG_H 1 +#pragma once + // // Define and set to 1 if the target system supports a proc filesystem // compatible with the Linux kernel's proc filesystem. Note that this diff --git a/OpenEXR/config/OpenEXRSetup.cmake b/OpenEXR/config/OpenEXRSetup.cmake index 5f2a6b6b5c..e4ae8b76e2 100644 --- a/OpenEXR/config/OpenEXRSetup.cmake +++ b/OpenEXR/config/OpenEXRSetup.cmake @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright Contributors to the OpenEXR Project. include(GNUInstallDirs) diff --git a/OpenEXR/config/ParseConfigure.cmake b/OpenEXR/config/ParseConfigure.cmake index 9623db428b..11f1c97663 100644 --- a/OpenEXR/config/ParseConfigure.cmake +++ b/OpenEXR/config/ParseConfigure.cmake @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright Contributors to the OpenEXR Project. file(READ configure.ac CONFIGURE_AC_CONTENTS) string(REGEX MATCH "AC_INIT\\(OpenEXR,[ ]*([0-9]+).([0-9]+).([0-9]+)" DUMMY ${CONFIGURE_AC_CONTENTS}) diff --git a/OpenEXR/doc/CMakeLists.txt b/OpenEXR/doc/CMakeLists.txt index 09a065273a..58a543fd3b 100644 --- a/OpenEXR/doc/CMakeLists.txt +++ b/OpenEXR/doc/CMakeLists.txt @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright Contributors to the OpenEXR Project. install( FILES diff --git a/OpenEXR/exr2aces/CMakeLists.txt b/OpenEXR/exr2aces/CMakeLists.txt index a145b72709..3333b1df66 100644 --- a/OpenEXR/exr2aces/CMakeLists.txt +++ b/OpenEXR/exr2aces/CMakeLists.txt @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright Contributors to the OpenEXR Project. add_executable(exr2aces main.cpp) target_link_libraries(exr2aces OpenEXR::IlmImf) diff --git a/OpenEXR/exrenvmap/CMakeLists.txt b/OpenEXR/exrenvmap/CMakeLists.txt index e68d7e530b..736bca06de 100644 --- a/OpenEXR/exrenvmap/CMakeLists.txt +++ b/OpenEXR/exrenvmap/CMakeLists.txt @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright Contributors to the OpenEXR Project. add_executable( exrenvmap makeLatLongMap.cpp diff --git a/OpenEXR/exrheader/CMakeLists.txt b/OpenEXR/exrheader/CMakeLists.txt index 3801be3af7..1f8e1d49fa 100644 --- a/OpenEXR/exrheader/CMakeLists.txt +++ b/OpenEXR/exrheader/CMakeLists.txt @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright Contributors to the OpenEXR Project. add_executable(exrheader main.cpp) target_link_libraries(exrheader OpenEXR::IlmImf) diff --git a/OpenEXR/exrmakepreview/CMakeLists.txt b/OpenEXR/exrmakepreview/CMakeLists.txt index 62fb961bba..054c2a60c6 100644 --- a/OpenEXR/exrmakepreview/CMakeLists.txt +++ b/OpenEXR/exrmakepreview/CMakeLists.txt @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright Contributors to the OpenEXR Project. add_executable(exrmakepreview main.cpp diff --git a/OpenEXR/exrmaketiled/CMakeLists.txt b/OpenEXR/exrmaketiled/CMakeLists.txt index baca1e3488..d8cd167b56 100644 --- a/OpenEXR/exrmaketiled/CMakeLists.txt +++ b/OpenEXR/exrmaketiled/CMakeLists.txt @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright Contributors to the OpenEXR Project. add_executable(exrmaketiled makeTiled.cpp diff --git a/OpenEXR/exrmultipart/CMakeLists.txt b/OpenEXR/exrmultipart/CMakeLists.txt index 83765af074..de33be4964 100644 --- a/OpenEXR/exrmultipart/CMakeLists.txt +++ b/OpenEXR/exrmultipart/CMakeLists.txt @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright Contributors to the OpenEXR Project. add_executable(exrmultipart exrmultipart.cpp) target_link_libraries(exrmultipart OpenEXR::IlmImf) diff --git a/OpenEXR/exrmultiview/CMakeLists.txt b/OpenEXR/exrmultiview/CMakeLists.txt index db7b0b93f6..4994388e4f 100644 --- a/OpenEXR/exrmultiview/CMakeLists.txt +++ b/OpenEXR/exrmultiview/CMakeLists.txt @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright Contributors to the OpenEXR Project. add_executable(exrmultiview makeMultiView.cpp diff --git a/OpenEXR/exrstdattr/CMakeLists.txt b/OpenEXR/exrstdattr/CMakeLists.txt index 3813212e60..61057dac86 100644 --- a/OpenEXR/exrstdattr/CMakeLists.txt +++ b/OpenEXR/exrstdattr/CMakeLists.txt @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright Contributors to the OpenEXR Project. add_executable(exrstdattr main.cpp) target_link_libraries(exrstdattr OpenEXR::IlmImf) diff --git a/OpenEXR_Viewers/CMakeLists.txt b/OpenEXR_Viewers/CMakeLists.txt index 2566a3342f..7b76eac01e 100644 --- a/OpenEXR_Viewers/CMakeLists.txt +++ b/OpenEXR_Viewers/CMakeLists.txt @@ -1,4 +1,8 @@ -# "More Modern" CMake version +# SPDX-License-Identifier: BSD-3-Clause +# Copyright Contributors to the OpenEXR Project. + +# We require this to get object library link library support and +# combined python 2 + 3 support cmake_minimum_required(VERSION 3.12) set(OPENEXR_VIEWERS_VERSION 2.3.0) diff --git a/PyIlmBase/CMakeLists.txt b/PyIlmBase/CMakeLists.txt index 57446d97dd..9dd7544249 100644 --- a/PyIlmBase/CMakeLists.txt +++ b/PyIlmBase/CMakeLists.txt @@ -1,4 +1,8 @@ -# "More Modern" CMake version +# SPDX-License-Identifier: BSD-3-Clause +# Copyright Contributors to the OpenEXR Project. + +# We require this to get object library link library support and +# combined python 2 + 3 support cmake_minimum_required(VERSION 3.12) # we include this first to parse configure.ac and extract the version diff --git a/PyIlmBase/PyIex/CMakeLists.txt b/PyIlmBase/PyIex/CMakeLists.txt index fd97241370..06835008d5 100644 --- a/PyIlmBase/PyIex/CMakeLists.txt +++ b/PyIlmBase/PyIex/CMakeLists.txt @@ -1,3 +1,6 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright Contributors to the OpenEXR Project. + pyilmbase_define_module(iex LIBNAME PyIex PRIV_EXPORT PYIEX_BUILD diff --git a/PyIlmBase/PyIexTest/CMakeLists.txt b/PyIlmBase/PyIexTest/CMakeLists.txt index 5cf031b0dd..d8a9fd864f 100644 --- a/PyIlmBase/PyIexTest/CMakeLists.txt +++ b/PyIlmBase/PyIexTest/CMakeLists.txt @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright Contributors to the OpenEXR Project. if(TARGET Python2::Interpreter) add_test(PyIlmBase.PyIexTest_Python2 diff --git a/PyIlmBase/PyImath/CMakeLists.txt b/PyIlmBase/PyImath/CMakeLists.txt index 4b6077264f..5bc42c5659 100644 --- a/PyIlmBase/PyImath/CMakeLists.txt +++ b/PyIlmBase/PyImath/CMakeLists.txt @@ -1,3 +1,6 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright Contributors to the OpenEXR Project. + pyilmbase_define_module(imath LIBNAME PyImath PRIV_EXPORT PYIMATH_BUILD diff --git a/PyIlmBase/PyImathNumpy/CMakeLists.txt b/PyIlmBase/PyImathNumpy/CMakeLists.txt index 7ff220611d..e763d46041 100644 --- a/PyIlmBase/PyImathNumpy/CMakeLists.txt +++ b/PyIlmBase/PyImathNumpy/CMakeLists.txt @@ -1,3 +1,6 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright Contributors to the OpenEXR Project. + if(TARGET Python2::Python AND TARGET Boost::${PYILMBASE_BOOST_PY2_COMPONENT} AND TARGET Python2::IlmBaseNumPy) diff --git a/PyIlmBase/PyImathNumpyTest/CMakeLists.txt b/PyIlmBase/PyImathNumpyTest/CMakeLists.txt index 1fbf743cd2..695828d2d1 100644 --- a/PyIlmBase/PyImathNumpyTest/CMakeLists.txt +++ b/PyIlmBase/PyImathNumpyTest/CMakeLists.txt @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright Contributors to the OpenEXR Project. if(TARGET Python2::Interpreter) add_test(PyIlmBase.PyImathNumpyTest_Python2 diff --git a/PyIlmBase/PyImathTest/CMakeLists.txt b/PyIlmBase/PyImathTest/CMakeLists.txt index cb2ef8334a..830b46c51a 100644 --- a/PyIlmBase/PyImathTest/CMakeLists.txt +++ b/PyIlmBase/PyImathTest/CMakeLists.txt @@ -1,3 +1,6 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright Contributors to the OpenEXR Project. + if(TARGET Python2::Interpreter) add_test(PyIlmBase.PyImathTest_Python2 ${Python2_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/pyImathTest.in diff --git a/PyIlmBase/config/CMakeLists.txt b/PyIlmBase/config/CMakeLists.txt index 0b306a5c79..8486264cc2 100644 --- a/PyIlmBase/config/CMakeLists.txt +++ b/PyIlmBase/config/CMakeLists.txt @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright Contributors to the OpenEXR Project. ### The autoconf setup for this folder generates a PyIlmBaseConfig.h file ### but no source actually uses that, so let's elide that for now diff --git a/PyIlmBase/config/ModuleDefine.cmake b/PyIlmBase/config/ModuleDefine.cmake index 18ef974f80..f983683ad0 100644 --- a/PyIlmBase/config/ModuleDefine.cmake +++ b/PyIlmBase/config/ModuleDefine.cmake @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright Contributors to the OpenEXR Project. function(PYILMBASE_ADD_LIBRARY_PRIV libname) set(options) diff --git a/PyIlmBase/config/NumPyLocate.cmake b/PyIlmBase/config/NumPyLocate.cmake index 7287035c87..5d4ed67f7a 100644 --- a/PyIlmBase/config/NumPyLocate.cmake +++ b/PyIlmBase/config/NumPyLocate.cmake @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright Contributors to the OpenEXR Project. if(TARGET Python2::Interpreter) execute_process( diff --git a/PyIlmBase/config/ParseConfigure.cmake b/PyIlmBase/config/ParseConfigure.cmake index f1c32dc281..08707d8eae 100644 --- a/PyIlmBase/config/ParseConfigure.cmake +++ b/PyIlmBase/config/ParseConfigure.cmake @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright Contributors to the OpenEXR Project. file(READ configure.ac CONFIGURE_AC_CONTENTS) string(REGEX MATCH "AC_INIT\\(PyIlmBase,[ ]*([0-9]+).([0-9]+).([0-9]+)" DUMMY ${CONFIGURE_AC_CONTENTS}) diff --git a/PyIlmBase/config/PyIlmBaseSetup.cmake b/PyIlmBase/config/PyIlmBaseSetup.cmake index d8d9d93958..4ff7edbec3 100644 --- a/PyIlmBase/config/PyIlmBaseSetup.cmake +++ b/PyIlmBase/config/PyIlmBaseSetup.cmake @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright Contributors to the OpenEXR Project. include(GNUInstallDirs) diff --git a/cmake/SampleCTestScript.cmake b/cmake/SampleCTestScript.cmake index d18d110fb0..edef05a1fb 100644 --- a/cmake/SampleCTestScript.cmake +++ b/cmake/SampleCTestScript.cmake @@ -1,3 +1,6 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright Contributors to the OpenEXR Project. + # This is a sample cmake test script that can be used to integrate into # a larger CI setup if you are building your own versions of OpenEXR # and also use a cdash (or cdash compliant) results server. diff --git a/cmake/Toolchain-Linux-VFX_Platform15.cmake b/cmake/Toolchain-Linux-VFX_Platform15.cmake index 5813494ce2..445fab9287 100644 --- a/cmake/Toolchain-Linux-VFX_Platform15.cmake +++ b/cmake/Toolchain-Linux-VFX_Platform15.cmake @@ -1,4 +1,6 @@ -# +# SPDX-License-Identifier: BSD-3-Clause +# Copyright Contributors to the OpenEXR Project. + # This is only an example of a theoretical toolchain file # that might be used for compiling to target a VFX # reference platform (https://vfxplatform.com) that is diff --git a/cmake/Toolchain-mingw.cmake b/cmake/Toolchain-mingw.cmake index 4d146d3562..08e8353344 100644 --- a/cmake/Toolchain-mingw.cmake +++ b/cmake/Toolchain-mingw.cmake @@ -1,4 +1,6 @@ -# +# SPDX-License-Identifier: BSD-3-Clause +# Copyright Contributors to the OpenEXR Project. + # This is only an example of cross compiling, but to compile for windows # under linux, have the relevant bits installed, and # validate the find path below