CMakeLists for each C file
This commit is contained in:
@ -3,4 +3,5 @@
|
||||
# This software is released under the MIT License.
|
||||
# https://opensource.org/licenses/MIT
|
||||
|
||||
|
||||
add_subdirectory(glfwclient)
|
@ -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
|
||||
|
@ -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"
|
||||
|
Reference in New Issue
Block a user