diff --git a/cmake/Findeasyloggingpp.cmake b/cmake/Findeasyloggingpp.cmake index 995267e..10d6836 100644 --- a/cmake/Findeasyloggingpp.cmake +++ b/cmake/Findeasyloggingpp.cmake @@ -1,7 +1,7 @@ cmake_minimum_required(VERSION 3.10) project(easyloggingpp) -set(EASYLOGGINGPP_SRC_DIR ${CMAKE_SOURCE_DIR}/vendor/easyloggingpp/src) +set(EASYLOGGINGPP_SRC_DIR ${CMAKE_CURRENT_LIST_DIR}/../vendor/easyloggingpp/src) add_library(easyloggingpp STATIC ${EASYLOGGINGPP_SRC_DIR}/easylogging++.cc) diff --git a/cmake/Findfaad2.cmake b/cmake/Findfaad2.cmake index 221d582..b79b0c8 100644 --- a/cmake/Findfaad2.cmake +++ b/cmake/Findfaad2.cmake @@ -1,8 +1,9 @@ cmake_minimum_required(VERSION 3.10) project(faad2) -set(FAAD_SRC_DIR ${CMAKE_SOURCE_DIR}/vendor/faad2/libfaad) -set(FAAD_HEADER_DIR ${CMAKE_SOURCE_DIR}/vendor/faad2/include) +set(FAAD_DIR ${CMAKE_CURRENT_LIST_DIR}/../vendor/faad2) +set(FAAD_SRC_DIR ${FAAD_DIR}/libfaad) +set(FAAD_HEADER_DIR ${FAAD_DIR}/include) add_library(faad2 STATIC ${FAAD_SRC_DIR}/bits.c @@ -110,7 +111,7 @@ set_target_properties(faad2 PROPERTIES CXX_STANDARD 17) if(WIN32) # win32_ver.h is required to set the package version string -configure_file(cmake/faad2_win32_ver.h.in ${FAAD_SRC_DIR}/win32_ver.h) +configure_file(${CMAKE_CURRENT_LIST_DIR}/faad2_win32_ver.h.in ${FAAD_SRC_DIR}/win32_ver.h) target_compile_definitions(faad2 PRIVATE HAVE_STDINT_H HAVE_STRING_H diff --git a/cmake/Findfmt.cmake b/cmake/Findfmt.cmake index c683d09..11a68a8 100644 --- a/cmake/Findfmt.cmake +++ b/cmake/Findfmt.cmake @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.10) project(fmtlib) -set(FMT_SRC_DIR ${CMAKE_SOURCE_DIR}/vendor/fmt) +set(FMT_SRC_DIR ${CMAKE_CURRENT_LIST_DIR}/../vendor/fmt) add_subdirectory(${FMT_SRC_DIR}) diff --git a/cmake/Findimgui.cmake b/cmake/Findimgui.cmake index 6db3b87..7a5174c 100644 --- a/cmake/Findimgui.cmake +++ b/cmake/Findimgui.cmake @@ -1,7 +1,7 @@ cmake_minimum_required(VERSION 3.16) project(imgui) -set(SRC_DIR ${CMAKE_SOURCE_DIR}/vendor/imgui) +set(SRC_DIR ${CMAKE_CURRENT_LIST_DIR}/../vendor/imgui) # imconfig.h is required to use 32bit vertex indices # this is required since implot uses alot of vertices diff --git a/cmake/Findimplot.cmake b/cmake/Findimplot.cmake index 74d2756..7d819a6 100644 --- a/cmake/Findimplot.cmake +++ b/cmake/Findimplot.cmake @@ -1,7 +1,7 @@ cmake_minimum_required(VERSION 3.16) project(implot) -set(SRC_DIR ${CMAKE_SOURCE_DIR}/vendor/implot) +set(SRC_DIR ${CMAKE_CURRENT_LIST_DIR}/../vendor/implot) add_library(implot STATIC "${SRC_DIR}/implot.h"