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:
parent
b3218d5db8
commit
bc90df5a9b
1 changed files with 1 additions and 1 deletions
|
|
@ -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?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue