Update CMakeLists.txt to include additional directories for dependencies

This commit is contained in:
2025-10-02 22:16:58 +01:00
parent e77cce7a7f
commit ddce275655
2 changed files with 7 additions and 7 deletions

View File

@@ -129,7 +129,7 @@ add_library(aaruformat SHARED include/aaruformat/consts.h include/aaruformat/enu
src/md5.c src/md5.c
include/md5.h) include/md5.h)
include_directories(include include/aaruformat) include_directories(include include/aaruformat 3rdparty/uthash/include 3rdparty/uthash/src)
include(3rdparty/flac.cmake) include(3rdparty/flac.cmake)
include(3rdparty/lzma.cmake) include(3rdparty/lzma.cmake)

View File

@@ -5,26 +5,26 @@ project(tests)
# 'lib' is the folder with Google Test sources # 'lib' is the folder with Google Test sources
add_subdirectory(lib) add_subdirectory(lib)
include_directories(${gtest_SOURCE_DIR}/include ${gtest_SOURCE_DIR}) include_directories(${gtest_SOURCE_DIR}/include ${gtest_SOURCE_DIR} ../include ../3rdparty/uthash/include ../3rdparty/uthash/src)
# Find OpenSSL for tests that use it directly # Find OpenSSL for tests that use it directly
find_package(OpenSSL QUIET) find_package(OpenSSL QUIET)
find_package(LibreSSL QUIET) find_package(LibreSSL QUIET)
file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/data/random file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/data/random
DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/data/) DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/data/)
file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/data/flac.flac file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/data/flac.flac
DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/data/) DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/data/)
file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/data/audio.bin file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/data/audio.bin
DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/data/) DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/data/)
file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/data/lzma.bin file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/data/lzma.bin
DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/data/) DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/data/)
file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/data/data.bin file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/data/data.bin
DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/data/) DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/data/)
# 'Google_Tests_run' is the target name # 'Google_Tests_run' is the target name
# 'test1.cpp tests2.cpp' are source files with tests # 'test1.cpp tests2.cpp' are source files with tests