|
From: <kin...@us...> - 2025-08-26 22:55:17
|
Revision: 7327
http://sourceforge.net/p/teem/code/7327
Author: kindlmann
Date: 2025-08-26 22:55:16 +0000 (Tue, 26 Aug 2025)
Log Message:
-----------
restoring these files, since it was a mistake to remove them as long as the current CMakeLists.txt refers to them (they will likely be removed again once the new still-under-construction CMakeLists.txt is committed)
Added Paths:
-----------
teem/trunk/CMake/TeemConfig.cmake.in
teem/trunk/CMake/TeemUse.cmake
Added: teem/trunk/CMake/TeemConfig.cmake.in
===================================================================
--- teem/trunk/CMake/TeemConfig.cmake.in (rev 0)
+++ teem/trunk/CMake/TeemConfig.cmake.in 2025-08-26 22:55:16 UTC (rev 7327)
@@ -0,0 +1,64 @@
+#
+# Teem: Tools to process and visualize scientific data and images
+# Copyright (C) 2009--2019 University of Chicago
+# Copyright (C) 2008, 2007, 2006, 2005 Gordon Kindlmann
+# Copyright (C) 2004, 2003, 2002, 2001, 2000, 1999, 1998 University of Utah
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public License
+# (LGPL) as published by the Free Software Foundation; either
+# version 2.1 of the License, or (at your option) any later version.
+# The terms of redistributing and/or modifying this software also
+# include exceptions to the LGPL that facilitate static linking.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+# You should have received a copy of the GNU Lesser General Public License
+# along with this library; if not, see <https://www.gnu.org/licenses/>.
+#
+
+#-----------------------------------------------------------------------------
+#
+# TeemConfig.cmake - Teem CMake configuration file for external projects.
+#
+# This file is configured by Teem and used by the TeemUse.cmake module
+# to load Teem's settings for an external project.
+
+# The directory of TeemConfig.cmake is, by definition, Teem_DIR.
+# (this_dir == Teem_DIR)
+#
+get_filename_component(this_dir "${CMAKE_CURRENT_LIST_FILE}" PATH)
+get_filename_component(Teem_ROOT_DIR "${this_dir}/@Teem_CV_CONFIG_TO_ROOT@" ABSOLUTE)
+
+# CMake files required to build client applications that use Teem.
+set(Teem_BUILD_SETTINGS_FILE "@Teem_CV_BUILD_SETTINGS_FILE@")
+set(Teem_USE_FILE "@Teem_CV_USE_FILE@")
+
+# The Teem directories.
+set(Teem_EXECUTABLE_DIRS "@Teem_CV_EXECUTABLE_DIRS@")
+set(Teem_LIBRARY_DIRS "@Teem_CV_LIBRARY_DIRS@")
+set(Teem_INCLUDE_DIRS "@Teem_CV_INCLUDE_DIRS@")
+
+# The Teem libraries.
+set(Teem_LIBRARIES "@Teem_CV_BUILT_LIBRARIES@")
+
+# The C flags added by Teem to the cmake-configured flags.
+set(Teem_REQUIRED_C_FLAGS "@Teem_REQUIRED_C_FLAGS@")
+
+# The Teem version number
+set(Teem_VERSION_MAJOR "@Teem_VERSION_MAJOR@")
+set(Teem_VERSION_MINOR "@Teem_VERSION_MINOR@")
+set(Teem_VERSION_PATCH "@Teem_VERSION_PATCH@")
+
+# Is Teem using shared libraries?
+set(Teem_BUILD_SHARED_LIBS "@BUILD_SHARED_LIBS@")
+
+# The list of tools in teem
+set(Teem_TOOLS "@Teem_TOOLS@")
+
+# The Teem library dependencies.
+if(NOT TARGET teem)
+ include("@Teem_CV_LIBRARY_DEPENDS_FILE@")
+endif()
Added: teem/trunk/CMake/TeemUse.cmake
===================================================================
--- teem/trunk/CMake/TeemUse.cmake (rev 0)
+++ teem/trunk/CMake/TeemUse.cmake 2025-08-26 22:55:16 UTC (rev 7327)
@@ -0,0 +1,46 @@
+#
+# Teem: Tools to process and visualize scientific data and images
+# Copyright (C) 2009--2019 University of Chicago
+# Copyright (C) 2008, 2007, 2006, 2005 Gordon Kindlmann
+# Copyright (C) 2004, 2003, 2002, 2001, 2000, 1999, 1998 University of Utah
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public License
+# (LGPL) as published by the Free Software Foundation; either
+# version 2.1 of the License, or (at your option) any later version.
+# The terms of redistributing and/or modifying this software also
+# include exceptions to the LGPL that facilitate static linking.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+# You should have received a copy of the GNU Lesser General Public License
+# along with this library; if not, see <https://www.gnu.org/licenses/>.
+#
+
+if(NOT Teem_FOUND)
+ message(FATAL_ERROR "Something went wrong. You are including TeemUse.cmake but Teem was not found")
+endif()
+
+# Make Teem easier to use
+include_directories(${Teem_INCLUDE_DIRS})
+link_directories(${Teem_LIBRARY_DIRS})
+
+# Load the compiler settings used for Teem.
+if(Teem_BUILD_SETTINGS_FILE)
+ include(CMakeImportBuildSettings)
+ CMAKE_IMPORT_BUILD_SETTINGS(${Teem_BUILD_SETTINGS_FILE})
+endif()
+
+# Support static builds
+if(NOT Teem_BUILD_SHARED_LIBS)
+ add_definitions(-DTEEM_STATIC=1)
+endif()
+
+# Add compiler flags needed to use Teem.
+set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${Teem_REQUIRED_C_FLAGS}")
+set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${Teem_REQUIRED_EXE_LINKER_FLAGS}")
+set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} ${Teem_REQUIRED_SHARED_LINKER_FLAGS}")
+set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} ${Teem_REQUIRED_MODULE_LINKER_FLAGS}")
+
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|