diff options
| author | onelin <oscar@nelin.dk> | 2025-04-01 09:45:43 +0000 |
|---|---|---|
| committer | onelin <oscar@nelin.dk> | 2025-04-09 09:55:17 +0000 |
| commit | 7352085dca54837fb60dbba4328ee0bc069bca16 (patch) | |
| tree | d5cbd648aea5abebc17627294e49a383e7323e0d /src/ctrl | |
| parent | e97750ce116cbcd67a8718c646e3af6415a4247e (diff) | |
Fetch GLFW3 if not installed locally
Diffstat (limited to 'src/ctrl')
| -rw-r--r-- | src/ctrl/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | src/ctrl/src/input.c | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/ctrl/CMakeLists.txt b/src/ctrl/CMakeLists.txt index a8525b0..1fcbfb6 100644 --- a/src/ctrl/CMakeLists.txt +++ b/src/ctrl/CMakeLists.txt @@ -7,5 +7,5 @@ add_library(daw_ctrl ) target_compile_options(daw_ctrl PUBLIC ${BUILD_OPTS}) -target_include_directories(daw_ctrl PRIVATE ${DAW_INCLUDE_DIRS}) +target_include_directories(daw_ctrl PRIVATE ${DAW_INCLUDE_DIRS} ${GLFW_INCLUDE_DIR}) target_link_libraries(daw_ctrl PRIVATE cglm glfw) diff --git a/src/ctrl/src/input.c b/src/ctrl/src/input.c index 5a08543..844fd2c 100644 --- a/src/ctrl/src/input.c +++ b/src/ctrl/src/input.c @@ -1,6 +1,9 @@ #include <errno.h> #include <string.h> +#undef GLFW_INCLUDE_NONE +#include <GLFW/glfw3.h> + #include <engine/core/dltools.h> #include <engine/core/logging.h> #include <engine/core/platform.h> |
