Debian Codegraph @

frmts/gtiff/libgeotiff/CMakeLists.txt

raw
1 include(GdalDriverHelper)
2
3 add_library(
4 geotiff OBJECT
5 cpl_serv.h
6 geo_free.c
7 geo_new.c
8 geo_set.c
9 geo_tiffp.h
10 geonames.h
11 geovalues.h
12 gdal_libgeotiff_symbol_rename.h
13 geo_get.c
14 geo_normalize.c
15 geo_simpletags.c
16 geo_trans.c
17 geotiff.h
18 xtiff.c
19 geo_config.h
20 geo_keyp.h
21 geo_normalize.h
22 geo_simpletags.h
23 geo_write.c
24 geotiff_proj4.c
25 xtiffio.h
26 geo_extra.c
27 geo_names.c
28 geo_print.c
29 geo_tiffp.c
30 geokeys.h
31 geotiffio.h)
32 include(GdalStandardIncludes)
33 include(GdalDriverHelper)
34
35 gdal_standard_includes(geotiff)
36 target_compile_options(geotiff PRIVATE ${GDAL_C_WARNING_FLAGS})
37
38 if (GDAL_USE_TIFF_INTERNAL)
39 gdal_add_vendored_lib(geotiff libtiff)
40 else ()
41 gdal_target_link_libraries(geotiff PRIVATE TIFF::TIFF)
42 endif ()
43 if (RENAME_INTERNAL_GEOTIFF_SYMBOLS)
44 target_compile_definitions(geotiff PUBLIC -DRENAME_INTERNAL_LIBGEOTIFF_SYMBOLS)
45 target_sources(geotiff PRIVATE gdal_libgeotiff_symbol_rename.h)
46 endif ()
47 set_property(TARGET geotiff PROPERTY POSITION_INDEPENDENT_CODE ${GDAL_OBJECT_LIBRARIES_POSITION_INDEPENDENT_CODE})
48
49 gdal_target_link_libraries(geotiff PRIVATE PROJ::proj)
50
51 target_sources(${GDAL_LIB_TARGET_NAME} PRIVATE $<TARGET_OBJECTS:geotiff>)