CMakeLists.txt: use find_package for assimp on linux

assimp as an upstream provides a cmake-config file
(https://github.com/assimp/assimp/blob/master/assimp-config.cmake.in)
that can be used to in place of find library.

This may be usable on windows as well, but I don't have such a system to
test on.
This commit is contained in:
Dylan Baker 2016-03-14 10:58:33 -07:00
parent b3218d5db8
commit bc90df5a9b

View file

@ -18,7 +18,7 @@ IF(WIN32)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DVK_USE_PLATFORM_WIN32_KHR")
ELSE(WIN32)
find_library(VULKAN_LIB NAMES libvulkan.so PATHS ${CMAKE_SOURCE_DIR}/libs/vulkan)
find_library(ASSIMP_LIBRARIES NAMES assimp PATHS ${CMAKE_SOURCE_DIR}/libs/assimp)
find_package(ASSIMP REQUIRED CONFIG)
find_package(XCB REQUIRED)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DVK_USE_PLATFORM_XCB_KHR")
# Todo : android?