Add TIFF libraries to CMakeLists.txt

This commit is contained in:
Jack 2024-08-24 00:11:20 -04:00
parent a743849a94
commit 176362eff7
1 changed files with 2 additions and 1 deletions

View File

@ -9,6 +9,7 @@ find_package(GLEW CONFIG REQUIRED)
find_package(glfw3 CONFIG REQUIRED)
find_package(glm CONFIG REQUIRED)
find_package(assimp CONFIG REQUIRED)
find_package(TIFF REQUIRED)
# Set Debug and Release directories
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG "${CMAKE_BINARY_DIR}")
@ -42,7 +43,7 @@ link_directories(${CMAKE_SOURCE_DIR}/dependencies/FreeImage/lib)
if (WIN32)
target_link_libraries(TerraVisor PRIVATE GLEW::GLEW glfw glm::glm assimp::assimp ${CMAKE_SOURCE_DIR}/dependencies/FreeImage/lib/FreeImage.lib)
else()
target_link_libraries(TerraVisor PRIVATE GLEW::GLEW glfw glm::glm assimp::assimp ${CMAKE_SOURCE_DIR}/dependencies/FreeImage/lib/linux/libfreeimage.a)
target_link_libraries(TerraVisor PRIVATE GLEW::GLEW glfw glm::glm assimp::assimp TIFF::TIFF ${CMAKE_SOURCE_DIR}/dependencies/FreeImage/lib/linux/libfreeimage.a)
endif()
# Custom targets