From 78302e1982c1b7b727c95603611b19913f5c13d0 Mon Sep 17 00:00:00 2001 From: ladevieq Date: Sat, 9 Jan 2021 23:31:58 +0100 Subject: XCB window creation --- src/CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/CMakeLists.txt') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 1fd25b7..43a9858 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,6 +1,10 @@ include_directories(${CMAKE_SOURCE_DIR}/include) include_directories(${Vulkan_INCLUDE_DIRS}) +if(UNIX) + include_directories(${X11_xcb_INCLUDE_PATH}) +endif() + add_executable( path-tracer main.cpp @@ -11,8 +15,9 @@ add_executable( vulkan-loader.cpp utils.cpp vk-renderer.cpp + window.cpp ) if(UNIX) - target_link_libraries(path-tracer ${CMAKE_DL_LIBS}) + target_link_libraries(path-tracer ${CMAKE_DL_LIBS} ${X11_xcb_LIB}) endif() -- cgit v1.3