summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMark Lobodzinski <mark@lunarg.com>2018-01-19 12:04:16 -0700
committerMark Lobodzinski <mark@lunarg.com>2018-01-22 11:16:43 -0700
commit1efcbbc91beee111f4eab81548c942925368a289 (patch)
treee8ab35e093cbdb344cbfd89aee06b2d2b71de603 /tests
parentad3b62efa745e4d560ada8af705c373207abd83d (diff)
downloadVulkan-Loader-1efcbbc91beee111f4eab81548c942925368a289.tar.gz
Vulkan-Loader-1efcbbc91beee111f4eab81548c942925368a289.tar.bz2
Vulkan-Loader-1efcbbc91beee111f4eab81548c942925368a289.zip
cmake: Add PROJECT_BINARY_DIR to cmake files
Tests and test/layers CMakeLists.txt files were missing this include path variable. This prevents LVL from building when used as a submodule. Change-Id: I0746b9ef280ca0bdd75a0a539c5bdc78114a60ba
Diffstat (limited to 'tests')
-rw-r--r--tests/CMakeLists.txt9
-rw-r--r--tests/layers/CMakeLists.txt1
2 files changed, 6 insertions, 4 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 077cbe15..4c081026 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -65,14 +65,15 @@ set(COMMON_CPP
)
include_directories(
- "${PROJECT_SOURCE_DIR}/tests"
- "${PROJECT_SOURCE_DIR}/tests/gtest-1.7.0/include"
- "${PROJECT_SOURCE_DIR}/icd/common"
- "${PROJECT_SOURCE_DIR}/layers"
+ ${PROJECT_SOURCE_DIR}/tests
+ ${PROJECT_SOURCE_DIR}/tests/gtest-1.7.0/include
+ ${PROJECT_SOURCE_DIR}/icd/common
+ ${PROJECT_SOURCE_DIR}/layers
${GLSLANG_SPIRV_INCLUDE_DIR}
${LIBGLM_INCLUDE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_BINARY_DIR}
+ ${PROJECT_BINARY_DIR}
)
if (NOT WIN32)
diff --git a/tests/layers/CMakeLists.txt b/tests/layers/CMakeLists.txt
index 69771899..c51546c5 100644
--- a/tests/layers/CMakeLists.txt
+++ b/tests/layers/CMakeLists.txt
@@ -61,6 +61,7 @@ include_directories(
${CMAKE_CURRENT_SOURCE_DIR}/../../loader
${CMAKE_CURRENT_SOURCE_DIR}/../../include/vulkan
${CMAKE_CURRENT_BINARY_DIR}
+ ${PROJECT_BINARY_DIR}
${CMAKE_BINARY_DIR}
)