summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2021-09-23 23:11:23 -0500
committersanine <sanine.not@pm.me>2021-09-23 23:11:23 -0500
commit1ca109e1770b56095bdf4c664f3b99b7ac93776d (patch)
tree15d6d7812a9c921c87eede2c451a96af6b13cdf2 /CMakeLists.txt
parent6f92e9da2f6b0223c34728da34be65d76d5db485 (diff)
add honey_log_level_str_()
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt33
1 files changed, 18 insertions, 15 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2934ec2..10f0b84 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -6,28 +6,29 @@ set(CMAKE_C_FLAGS "-Wall -Wextra -Werror -Wfatal-errors -Wpedantic")
find_package(OpenGL REQUIRED)
find_package(Lua51 REQUIRED)
-include_directories(${LUA_INCLUDE_DIR})
+include_directories(${LUA_INCLUDE_DIR} ${CMAKE_SOURCE_DIR}/src)
set(CMAKE_C_FLAGS "-g")
add_library(glad src/glad/glad.c)
add_library(stb_image src/stb_image/stb_image.c)
+set(SRC_ROOT ${CMAKE_SOURCE_DIR}/src)
set(SOURCE_FILES
- src/main.c
- src/cairo_bindings.c
- src/glm_bindings.c
- src/glm_vec3_bindings.c
- src/glm_vec4_bindings.c
- src/glm_mat3_bindings.c
- src/glm_mat4_bindings.c
- src/honey.c
- src/input.c
- src/honey_lua.c
- src/mesh.c
- src/shader.c
- src/texture.c
- src/window.c)
+ ${SRC_ROOT}/main.c
+ ${SRC_ROOT}/cairo_bindings.c
+ ${SRC_ROOT}/glm_bindings.c
+ ${SRC_ROOT}/glm_vec3_bindings.c
+ ${SRC_ROOT}/glm_vec4_bindings.c
+ ${SRC_ROOT}/glm_mat3_bindings.c
+ ${SRC_ROOT}/glm_mat4_bindings.c
+ ${SRC_ROOT}/honey.c
+ ${SRC_ROOT}/input.c
+ ${SRC_ROOT}/honey_lua.c
+ ${SRC_ROOT}/mesh.c
+ ${SRC_ROOT}/shader.c
+ ${SRC_ROOT}/texture.c
+ ${SRC_ROOT}/window.c)
add_executable(honey ${SOURCE_FILES})
@@ -46,6 +47,8 @@ set(TEST_ROOT ${CMAKE_SOURCE_DIR}/src/test)
set(TEST_SOURCES
${TEST_ROOT}/test_main.c
${TEST_ROOT}/logging/logging_tests.c
+
+ ${SRC_ROOT}/logging/logging.c
)
add_executable(test EXCLUDE_FROM_ALL ${TEST_SOURCES})
set_target_properties(test PROPERTIES