Skip to content

Commit

Permalink
add include/bundled folder for volk and vma
Browse files Browse the repository at this point in the history
prefer over syste-installed headers
  • Loading branch information
crocdialer committed May 11, 2024
1 parent 079a289 commit d8ea3eb
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
12 changes: 8 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,12 @@ set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR}/cmake_modules ${CMAKE_MODULE_PAT
include(vierkant_utils)

set(INCLUDE_DIRS ${PROJECT_SOURCE_DIR}/include
${PROJECT_SOURCE_DIR}/3rdparty/include
${PROJECT_SOURCE_DIR}/include/vierkant/bundled
${PROJECT_BINARY_DIR}/include)

# suppress warnings from bundles headers
include_directories(BEFORE SYSTEM "${PROJECT_SOURCE_DIR}/include/vierkant/bundled")

# vulkan/volk
find_package(Vulkan)
include_directories(${Vulkan_INCLUDE_DIRS})
Expand Down Expand Up @@ -150,14 +153,15 @@ endif (BUILD_TESTS)
# install vierkant-headers
#FILE(GLOB FOLDER_HEADERS ${CMAKE_CURRENT_SOURCE_DIR}/include/${LIB_NAME}/*.h*)
#install (FILES ${FOLDER_HEADERS} DESTINATION "include/${LIB_NAME}")
install (DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include/${LIB_NAME} DESTINATION "include/")
install (DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/include/${LIB_NAME} DESTINATION "include/")
install (DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include/${LIB_NAME} DESTINATION "include")
install (DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include/${LIB_NAME}/bundled DESTINATION "include/${LIB_NAME}/bundled")
install (DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/include/${LIB_NAME} DESTINATION "include")

# install entt-headers
FILE(GLOB ENTT_HEADERS ${CMAKE_CURRENT_SOURCE_DIR}/submodules/entt/single_include/entt/*.h*)
install (FILES ${ENTT_HEADERS} DESTINATION "include/entt")

# install glm-headers
install (DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/submodules/glm/glm DESTINATION "include/")
install (DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/submodules/glm/glm DESTINATION "include")

install (TARGETS ${LIB_NAME} DESTINATION lib)
2 changes: 1 addition & 1 deletion include/vierkant/Instance.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

#pragma once

#include <volk.h>
#include <crocore/crocore.hpp>
#include <vierkant/volk.h>

namespace vierkant
{
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/volk.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* This file is part of volk library; see volk.h for version/license details */
/* clang-format off */
#include <vierkant/volk.h>
#include <volk.h>

#ifdef _WIN32
typedef const char* LPCSTR;
Expand Down

0 comments on commit d8ea3eb

Please sign in to comment.