add boost
This commit is contained in:
parent
ccf325d8fb
commit
aafd64137f
|
@ -30,6 +30,9 @@ source_group("shaders" FILES ${PROJECT_SHADERS})
|
||||||
source_group("sources" FILES ${PROJECT_SOURCES})
|
source_group("sources" FILES ${PROJECT_SOURCES})
|
||||||
source_group("vendors" FILES ${VENDORS_SOURCES})
|
source_group("vendors" FILES ${VENDORS_SOURCES})
|
||||||
|
|
||||||
|
find_package(Boost 1.56 REQUIRED COMPONENTS
|
||||||
|
program_options)
|
||||||
|
|
||||||
set(EXE_1_NAME loader)
|
set(EXE_1_NAME loader)
|
||||||
file(
|
file(
|
||||||
GLOB EXE_1_SOURCES
|
GLOB EXE_1_SOURCES
|
||||||
|
@ -40,7 +43,7 @@ set(CMAKE_BINARY_DIR "bin")
|
||||||
|
|
||||||
add_executable(${EXE_1_NAME} ${EXE_1_SOURCES} ${PROJECT_HEADERS}
|
add_executable(${EXE_1_NAME} ${EXE_1_SOURCES} ${PROJECT_HEADERS}
|
||||||
${PROJECT_SHADERS} ${VENDORS_SOURCES})
|
${PROJECT_SHADERS} ${VENDORS_SOURCES})
|
||||||
target_link_libraries(${EXE_1_NAME} glfw ${GLAD_LIBRARIES})
|
target_link_libraries(${EXE_1_NAME} glfw ${GLAD_LIBRARIES} Boost::program_options)
|
||||||
target_include_directories(${EXE_1_NAME} PRIVATE include)
|
target_include_directories(${EXE_1_NAME} PRIVATE include)
|
||||||
set_target_properties(${EXE_1_NAME} PROPERTIES
|
set_target_properties(${EXE_1_NAME} PROPERTIES
|
||||||
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${EXE_1_NAME})
|
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${EXE_1_NAME})
|
||||||
|
|
|
@ -9,7 +9,7 @@ For Fedora Systems, you can the dependencies like this:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo dnf install wayland-devel libxkbcommon-devel wayland-protocols-devel extra-cmake-modules \
|
sudo dnf install wayland-devel libxkbcommon-devel wayland-protocols-devel extra-cmake-modules \
|
||||||
libXrandr-devel libXinerama-devel libXcursor-devel libXi-devel
|
libXrandr-devel libXinerama-devel libXcursor-devel libXi-devel boost boost-doc boost-devel
|
||||||
```
|
```
|
||||||
|
|
||||||
Optional, but recommended Packages:
|
Optional, but recommended Packages:
|
||||||
|
@ -22,3 +22,4 @@ sudo dnf install glfw-devel glfw glfw-doc glad
|
||||||
Your editor might need help to find the `include/` directory. If you are using
|
Your editor might need help to find the `include/` directory. If you are using
|
||||||
clangd, you can use the `.clangd` file in this repo. Just adjust the path to
|
clangd, you can use the `.clangd` file in this repo. Just adjust the path to
|
||||||
what you need (it needs to be absolute).
|
what you need (it needs to be absolute).
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,12 @@
|
||||||
|
#include <boost/program_options.hpp>
|
||||||
#include <glad/glad.c>
|
#include <glad/glad.c>
|
||||||
#include <GLFW/glfw3.h>
|
#include <GLFW/glfw3.h>
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
|
namespace po = boost::program_options;
|
||||||
|
|
||||||
void framebuffer_size_callback(GLFWwindow *window, int width, int height);
|
void framebuffer_size_callback(GLFWwindow *window, int width, int height);
|
||||||
void processInput(GLFWwindow *window);
|
void processInput(GLFWwindow *window);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue