CMAKE: use ROOT_DIR for include of macros.cmake to allow to use the Find modules in sub projects only

master
Martin Gerhardy 2019-06-23 22:25:15 +02:00
parent 8ae69cd546
commit 0ed1674769
16 changed files with 16 additions and 16 deletions

View File

@ -1,2 +1,2 @@
include("${PROJECT_SOURCE_DIR}/cmake/macros.cmake")
include("${ROOT_DIR}/cmake/macros.cmake")
engine_find(uuid uuid/uuid.h "" "" "")

View File

@ -1,2 +1,2 @@
include("${PROJECT_SOURCE_DIR}/cmake/macros.cmake")
include("${ROOT_DIR}/cmake/macros.cmake")
engine_find(assimp assimp/Importer.hpp "" "")

View File

@ -1,2 +1,2 @@
include("${PROJECT_SOURCE_DIR}/cmake/macros.cmake")
include("${ROOT_DIR}/cmake/macros.cmake")
engine_find(backward backward.hpp backward "")

View File

@ -1,2 +1,2 @@
include("${PROJECT_SOURCE_DIR}/cmake/macros.cmake")
include("${ROOT_DIR}/cmake/macros.cmake")
engine_find(benchmark benchmark.h benchmark "")

View File

@ -1,2 +1,2 @@
include("${PROJECT_SOURCE_DIR}/cmake/macros.cmake")
include("${ROOT_DIR}/cmake/macros.cmake")
engine_find(bullet btBulletDynamicsCommon.h bullet "")

View File

@ -1,2 +1,2 @@
include("${PROJECT_SOURCE_DIR}/cmake/macros.cmake")
include("${ROOT_DIR}/cmake/macros.cmake")
engine_find(dearimgui imgui/imgui.h "" "" "")

View File

@ -1,2 +1,2 @@
include("${PROJECT_SOURCE_DIR}/cmake/macros.cmake")
include("${ROOT_DIR}/cmake/macros.cmake")
engine_find(fastnoise fastnoise.h "" "")

View File

@ -1,2 +1,2 @@
include("${PROJECT_SOURCE_DIR}/cmake/macros.cmake")
include("${ROOT_DIR}/cmake/macros.cmake")
engine_find_header_only(flatbuffers flatbuffers.h "" "" "")

View File

@ -1,3 +1,3 @@
#We need 0.9.8
include("${PROJECT_SOURCE_DIR}/cmake/macros.cmake")
include("${ROOT_DIR}/cmake/macros.cmake")
engine_find_header_only(glm detail/type_mat.hpp glm "" "")

View File

@ -1,2 +1,2 @@
include("${PROJECT_SOURCE_DIR}/cmake/macros.cmake")
include("${ROOT_DIR}/cmake/macros.cmake")
engine_find(libenet enet/enet.h "" "" "")

View File

@ -1,2 +1,2 @@
include("${PROJECT_SOURCE_DIR}/cmake/macros.cmake")
include("${ROOT_DIR}/cmake/macros.cmake")
engine_find(libuv uv.h "" "")

View File

@ -1,2 +1,2 @@
include("${PROJECT_SOURCE_DIR}/cmake/macros.cmake")
include("${ROOT_DIR}/cmake/macros.cmake")
engine_find(lua53 lua.h lua5.3 "" "")

View File

@ -1,2 +1,2 @@
include("${PROJECT_SOURCE_DIR}/cmake/macros.cmake")
include("${ROOT_DIR}/cmake/macros.cmake")
engine_find_header_only(restclient-cpp restclient.h restclient-cpp "" "")

View File

@ -1,2 +1,2 @@
include("${PROJECT_SOURCE_DIR}/cmake/macros.cmake")
include("${ROOT_DIR}/cmake/macros.cmake")
engine_find(sdl2 SDL.h SDL2 ">=2.0.3")

View File

@ -1,2 +1,2 @@
include("${PROJECT_SOURCE_DIR}/cmake/macros.cmake")
include("${ROOT_DIR}/cmake/macros.cmake")
engine_find(simplecpp simplecpp.h "" "")

View File

@ -1,2 +1,2 @@
include("${PROJECT_SOURCE_DIR}/cmake/macros.cmake")
include("${ROOT_DIR}/cmake/macros.cmake")
engine_find(zlib zlib.h "" "")