cmake_minimum_required( VERSION 3.10 )
project(assimp_cmd)

FIND_PACKAGE(assimp)

INCLUDE_DIRECTORIES(
  .
  ${ASSIMP_INCLUDE_DIR}
)

ADD_DEFINITIONS(-DASSIMP_BUILD_NO_OWN_ZLIB)

ADD_EXECUTABLE( assimp_cmd
  CompareDump.cpp
  ImageExtractor.cpp
  Main.cpp
  Main.h
  WriteDumb.cpp
  Info.cpp
  Export.cpp
)

SET_PROPERTY(TARGET assimp_cmd PROPERTY DEBUG_POSTFIX ${CMAKE_DEBUG_POSTFIX})

TARGET_LINK_LIBRARIES( assimp_cmd  ${ASSIMP_LIBRARIES} z )
SET_TARGET_PROPERTIES( assimp_cmd PROPERTIES
  OUTPUT_NAME assimp
)
