Skip to content
Snippets Groups Projects
Commit dc9d02f7 authored by n0F4x's avatar n0F4x
Browse files

Test libraries

parent 410a2252
No related branches found
No related tags found
No related merge requests found
......@@ -84,13 +84,13 @@ IfMacros: [ 'IF' ]
IncludeBlocks: Regroup
IncludeCategories:
- Regex: '^<glm/'
Priority: 1
- Regex: '^<vulkan/'
Priority: 2
- Regex: '<vk_mem_alloc.h>'
- Regex: '^<vulkan/'
Priority: 3
- Regex: '^<glfw/'
- Regex: '^<vk_mem_alloc.h>'
Priority: 4
- Regex: '^<GLFW/'
Priority: 5
- Regex: '^<.*\..*'
Priority: 998
- Regex: '^<.*'
......
......@@ -85,13 +85,13 @@ target_compile_definitions(${PROJECT_NAME} PRIVATE
target_link_libraries(${PROJECT_NAME} PRIVATE VulkanMemoryAllocator)
# GLFW
FetchContent_Declare(GLFW
FetchContent_Declare(glfw3
GIT_REPOSITORY https://github.com/glfw/glfw.git
GIT_TAG 3.4
GIT_PROGRESS TRUE
SYSTEM
)
FetchContent_MakeAvailable(GLFW)
FetchContent_MakeAvailable(glfw3)
target_compile_definitions(${PROJECT_NAME} PRIVATE
GLFW_INCLUDE_VULKAN
)
......
#include <iostream>
#include <glm/glm.hpp>
#include <vulkan/vulkan.hpp>
#include <vk_mem_alloc.h>
#include <GLFW/glfw3.h>
int main()
{
std::cout << "Hello World!\n";
std::cout << GLM_VERSION_MESSAGE << '\n';
std::cout << "Vulkan-Hpp C++ version: " << VULKAN_HPP_CPP_VERSION << '\n';
std::cout << "Vulkan Version found by VMA: " << VMA_VULKAN_VERSION << '\n';
std::cout << "GLFW version: " << GLFW_VERSION_MAJOR << '.'
<< GLFW_VERSION_MINOR << '\n';
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment