CMakeLists for each C file

This commit is contained in:
2021-12-07 07:28:47 -08:00
parent f333cc47fa
commit c75bce4d93
32 changed files with 321 additions and 38 deletions

View File

@ -3,4 +3,5 @@
# This software is released under the MIT License.
# https://opensource.org/licenses/MIT
add_subdirectory(glfwclient)

View File

@ -17,14 +17,9 @@ target_link_libraries(${PROJECT_NAME}
glad
)
# Sources
file(GLOB_RECURSE SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/*.c)
file(GLOB_RECURSE HEADERS ${CMAKE_CURRENT_SOURCE_DIR}/*.h)
target_sources(${PROJECT_NAME}
PRIVATE
${SOURCES}
${HEADERS}
glfwclient.c
)
# Includes

View File

@ -6,7 +6,7 @@
#pragma once
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include "libs.h"
#include <libs.h>
#include "display/render.h"
#include "input/input.h"
#include "game/game.h"