From 09f0c314f6981613ccef3b4ad251d34b7832da32 Mon Sep 17 00:00:00 2001 From: Jack Date: Sat, 24 Aug 2024 00:19:14 -0400 Subject: [PATCH] Hail Mary fix to get working on Linux --- CMakeLists.txt | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3676b20..4e92b93 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,7 +9,6 @@ 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}") @@ -50,7 +49,17 @@ else() assimp::assimp TIFF::TIFF ${CMAKE_SOURCE_DIR}/dependencies/FreeImage/lib/linux/libfreeimage.a - ${CMAKE_SOURCE_DIR}/dependencies/FreeImage/lib/linux/libfreeimage-3.19.0.so + /vcpkg/installed/x64-linux/debug/lib/libtiffd.a + /vcpkg/installed/x64-linux/debug/lib/libjpeg.a + /vcpkg/installed/x64-linux/debug/lib/libz.a + /vcpkg/installed/x64-linux/debug/lib/liblzma.a + /usr/lib/x86_64-linux-gnu/libGL.so + /usr/lib/x86_64-linux-gnu/libGLU.so + /usr/lib/x86_64-linux-gnu/libX11.so + /usr/lib/x86_64-linux-gnu/libXext.so + -lm + -ldl + -lrt ) endif()