File: CMakeLists.txt

package info (click to toggle)
insighttoolkit4 4.13.3withdata-dfsg2-4%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 491,276 kB
  • sloc: cpp: 557,593; ansic: 180,546; fortran: 34,788; python: 16,572; sh: 2,187; lisp: 2,070; tcl: 993; java: 362; perl: 200; makefile: 133; csh: 81; pascal: 69; xml: 19; ruby: 10
file content (32 lines) | stat: -rw-r--r-- 757 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
project(ITKJPEG)
set(ITKJPEG_THIRD_PARTY 1)

option(ITK_USE_SYSTEM_JPEG "Use an outside build of JPEG." ${ITK_USE_SYSTEM_LIBRARIES})
mark_as_advanced(ITK_USE_SYSTEM_JPEG)

if(ITK_USE_SYSTEM_JPEG)
  find_package(JPEG REQUIRED)
  set(ITKJPEG_INCLUDE_DIRS
    ${ITKJPEG_BINARY_DIR}/src
    )
  set(ITKJPEG_SYSTEM_INCLUDE_DIRS
    ${JPEG_INCLUDE_DIR}
    )
  set(ITKJPEG_LIBRARIES "${JPEG_LIBRARIES}")
  set(ITKJPEG_NO_SRC 1)
else()
  set(ITKJPEG_INCLUDE_DIRS
    ${ITKJPEG_BINARY_DIR}/src
    ${ITKJPEG_SOURCE_DIR}/src
    )
  set(ITKJPEG_LIBRARIES itkjpeg)
endif()

configure_file(src/itk_jpeg.h.in src/itk_jpeg.h)

itk_module_impl()

install(FILES ${ITKJPEG_BINARY_DIR}/src/itk_jpeg.h
  DESTINATION ${ITKJPEG_INSTALL_INCLUDE_DIR}
  COMPONENT Development
  )