png.cmake 400 Bytes
Newer Older
1
add_external_project(png
2
  DEPENDS zlib
Utkarsh Ayachit's avatar
Utkarsh Ayachit committed
3

4 5
  CMAKE_ARGS
    -DPNG_TESTS:BOOL=OFF
Utkarsh Ayachit's avatar
Utkarsh Ayachit committed
6 7
    # VTK uses API that gets hidden when PNG_NO_STDIO is TRUE (default).
    -DPNG_NO_STDIO:BOOL=OFF
8 9 10 11
    # Always build in release mode since the symlinks on Linux don't
    # work right for debug mode (libpng.{so,a} points to libpng14.{so,a}
    # instead of libpng14d.{so,a}).
    -DCMAKE_BUILD_TYPE:STRING=Release
12
  )