szip.cmake 403 Bytes
Newer Older
1
add_external_project(szip
2 3
  CONFIGURE_COMMAND <SOURCE_DIR>/configure
                    --enable-encoding
4
                    --prefix=<INSTALL_DIR>
5
)
6 7 8 9 10

# any project depending on szip, inherits these cmake variables
add_extra_cmake_args(
    -DSZIP_LIBRARY:FILEPATH=<INSTALL_DIR>/lib/${CMAKE_SHARED_LIBRARY_PREFIX}sz${CMAKE_SHARED_LIBRARY_SUFFIX}
    -DSZIP_INCLUDE_DIR:FILEPATH=<INSTALL_DIR>/include)