summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
blob: 1dc8e9499e39222607b437f2f123b52b95e84a9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
cmake_minimum_required(VERSION 3.2)
project(honey_engine_demo)

set(CMAKE_C_FLAGS "-Wall -Wextra -Werror -Wfatal-errors -Wpedantic")

find_package(OpenGL REQUIRED)
find_package(Lua51 REQUIRED)

include_directories(${LUA_INCLUDE_DIR})

set(CMAKE_C_FLAGS "-g")

add_library(glad src/glad/glad.c)
add_library(stb_image src/stb_image/stb_image.c)

set(SOURCE_FILES
  src/main.c
  src/cglm_bindings.c
  src/camera/camera.c
  src/error/error.c
  src/honey.c
  src/input/input.c
  src/honey_lua.c
  src/light/light.c
  src/mesh/mesh.c
  src/primitives/primitives.c
  src/shader/shader.c
  src/texture/texture.c
  src/window/window.c)
  
add_executable(honey ${SOURCE_FILES})

set(LIBRARIES ${LUA_LIBRARIES} assimp glfw GL glad stb_image dl m)
target_link_libraries(honey ${LIBRARIES})