123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
-
- set(LIB3MF_LIB "3mf")
-
- if (EXISTS "${CMAKE_SOURCE_DIR}/thirdparty/lib3mf/install")
- message(STATUS "found lib3mf in thirdparty.")
- set(LIB3MF_INCLUDE_DIRS "${CMAKE_SOURCE_DIR}/thirdparty/lib3mf/install/include/Bindings/Cpp")
- set(LIB3MF_LIBDIR "${CMAKE_SOURCE_DIR}/thirdparty/lib3mf/install/lib")
- endif()
- if (NOT ${LIB3MF_LIBDIR} STREQUAL "")
- find_library(LIBZ_LIBRARY NAMES z)
- find_library(LIBZIP_LIBRARY NAMES zip)
- set(LIB3MF_LIBRARIES "-L${LIB3MF_LIBDIR}" "-l${LIB3MF_LIB} ${LIBZIP_LIBRARY} ${LIBZ_LIBRARY}")
- set(LIB3MF_FOUND TRUE)
- else()
- set(LIB3MF_FOUND FALSE)
- message(STATUS "Could not find lib3mf.")
- endif()
|