Avoid relative path in #include
Adds CMAKE_CURRENT_SOURCE_DIR to the include path for UnitSPIRV
This commit is contained in:
Родитель
4c21571728
Коммит
1a3734d265
|
@ -232,6 +232,7 @@ if (NOT ${SPIRV_SKIP_EXECUTABLES})
|
|||
add_executable(UnitSPIRV ${TEST_SOURCES})
|
||||
default_compile_options(UnitSPIRV)
|
||||
target_include_directories(UnitSPIRV PRIVATE
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${gmock_SOURCE_DIR}/include ${gtest_SOURCE_DIR}/include)
|
||||
target_link_libraries(UnitSPIRV PRIVATE ${SPIRV_TOOLS} gmock)
|
||||
else()
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
#include <vector>
|
||||
#include <gmock/gmock.h>
|
||||
|
||||
#include "../source/instruction.h"
|
||||
#include "source/instruction.h"
|
||||
|
||||
using libspirv::AssemblyContext;
|
||||
using spvtest::AutoText;
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
// MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
|
||||
|
||||
#include "../source/spirv_constant.h"
|
||||
#include "source/spirv_constant.h"
|
||||
#include "UnitSPIRV.h"
|
||||
|
||||
namespace {
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
|
||||
#include "gmock/gmock.h"
|
||||
|
||||
#include "../source/spirv_constant.h"
|
||||
#include "source/spirv_constant.h"
|
||||
#include "TestFixture.h"
|
||||
|
||||
using ::testing::Eq;
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
|
||||
#include <gmock/gmock.h>
|
||||
|
||||
#include "../source/opcode.h"
|
||||
#include "source/opcode.h"
|
||||
|
||||
using ::spvtest::EnumCase;
|
||||
using ::testing::Eq;
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
#include "UnitSPIRV.h"
|
||||
|
||||
#include "gmock/gmock.h"
|
||||
#include "../source/operand.h"
|
||||
#include "source/operand.h"
|
||||
|
||||
using ::testing::Eq;
|
||||
|
||||
|
|
|
@ -32,8 +32,8 @@
|
|||
|
||||
#include "TestFixture.h"
|
||||
#include "UnitSPIRV.h"
|
||||
#include "source/spirv_constant.h"
|
||||
#include "util/bitutils.h"
|
||||
#include "../source/spirv_constant.h"
|
||||
|
||||
namespace {
|
||||
|
||||
|
|
|
@ -32,14 +32,14 @@
|
|||
#include <iomanip>
|
||||
|
||||
#include "libspirv/libspirv.h"
|
||||
#include "../source/assembly_grammar.h"
|
||||
#include "../source/binary.h"
|
||||
#include "../source/diagnostic.h"
|
||||
#include "../source/opcode.h"
|
||||
#include "../source/spirv_endian.h"
|
||||
#include "../source/text.h"
|
||||
#include "../source/text_handler.h"
|
||||
#include "../source/validate.h"
|
||||
#include "source/assembly_grammar.h"
|
||||
#include "source/binary.h"
|
||||
#include "source/diagnostic.h"
|
||||
#include "source/opcode.h"
|
||||
#include "source/spirv_endian.h"
|
||||
#include "source/text.h"
|
||||
#include "source/text_handler.h"
|
||||
#include "source/validate.h"
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче