# ========================================================================= # # Copyright 2024 Pierre Gruet # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0.txt # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # # =========================================================================*/ cmake_minimum_required(VERSION 3.23) project(itkadaptivedenoising) set(CMAKE_INSTALL_PREFIX "/usr") file(GLOB_RECURSE lib_files src/*.c* ) file(GLOB_RECURSE HEADER_FILES include/*.h* ) add_library(itkadaptivedenoising SHARED ${lib_files} ) target_include_directories(itkadaptivedenoising PUBLIC include/ /usr/include/ITK-ITK_VERSION ) set_target_properties(itkadaptivedenoising PROPERTIES VERSION ${VERSION} SOVERSION ${SOVERSION} ) add_library(itkadaptivedenoisingg STATIC ${lib_files} ) target_include_directories(itkadaptivedenoisingg PUBLIC include/ /usr/include/ITK-ITK_VERSION ) set_target_properties(itkadaptivedenoisingg PROPERTIES OUTPUT_NAME itkadaptivedenoising ) install(TARGETS itkadaptivedenoising DESTINATION "lib/${CMAKE_LIBRARY_ARCHITECTURE}") install(TARGETS itkadaptivedenoisingg DESTINATION "lib/${CMAKE_LIBRARY_ARCHITECTURE}") install(FILES ${HEADER_FILES} DESTINATION include)