Debian Codegraph @

debian/CMakeLists.txt.in

raw
1 # =========================================================================
2 #
3 # Copyright 2024 Pierre Gruet <[email protected]>
4 #
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
8 #
9 # https://www.apache.org/licenses/LICENSE-2.0.txt
10 #
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16 #
17 # =========================================================================*/
18
19 cmake_minimum_required(VERSION 3.23)
20 project(itkadaptivedenoising)
21
22 set(CMAKE_INSTALL_PREFIX "/usr")
23
24 file(GLOB_RECURSE lib_files
25 src/*.c*
26 )
27
28 file(GLOB_RECURSE HEADER_FILES
29 include/*.h*
30 )
31
32 add_library(itkadaptivedenoising
33 SHARED
34 ${lib_files}
35 )
36
37 target_include_directories(itkadaptivedenoising PUBLIC
38 include/
39 /usr/include/ITK-ITK_VERSION
40 )
41
42 set_target_properties(itkadaptivedenoising PROPERTIES
43 VERSION ${VERSION}
44 SOVERSION ${SOVERSION}
45 )
46
47 add_library(itkadaptivedenoisingg
48 STATIC
49 ${lib_files}
50 )
51
52 target_include_directories(itkadaptivedenoisingg PUBLIC
53 include/
54 /usr/include/ITK-ITK_VERSION
55 )
56
57 set_target_properties(itkadaptivedenoisingg PROPERTIES
58 OUTPUT_NAME itkadaptivedenoising
59 )
60
61 install(TARGETS itkadaptivedenoising DESTINATION "lib/${CMAKE_LIBRARY_ARCHITECTURE}")
62 install(TARGETS itkadaptivedenoisingg DESTINATION "lib/${CMAKE_LIBRARY_ARCHITECTURE}")
63 install(FILES
64 ${HEADER_FILES}
65 DESTINATION include)