cmake_minimum_required(VERSION 3.10)

# Set some basic project attributes
project (Osmium
	VERSION 0.1
	DESCRIPTION "A Hello World Project")



# This project will output an executable file
add_executable(${PROJECT_NAME} Osmium.cpp)

# Create a simple configuration header
configure_file(config.h.in config.h)

# Include the configuration header in the build
target_include_directories(${PROJECT_NAME} PUBLIC "${PROJECT_BINARY_DIR}")
add_library(glad src/glad.c)

add_subdirectory(deps/glfw-3.4)
target_include_directories(${PROJECT_NAME} PRIVATE include deps/glfw-3.4/include ${PROJECT_BINARY_DIR})
target_include_directories(glad PUBLIC include)
target_link_libraries(${PROJECT_NAME}
		PRIVATE
		glad
		glfw

)

set(IMGUI_SRC
		deps/imgui-docking/imgui.cpp
		deps/imgui-docking/imgui_draw.cpp
		deps/imgui-docking/imgui_widgets.cpp
		deps/imgui-docking/imgui_tables.cpp
		deps/imgui-docking/backends/imgui_impl_glfw.cpp
		deps/imgui-docking/backends/imgui_impl_opengl3.cpp
)


add_library(imgui STATIC ${IMGUI_SRC})
target_include_directories(imgui PUBLIC
		deps/imgui-docking
		deps/imgui-docking/backends
)
target_link_libraries(${PROJECT_NAME}
	PRIVATE imgui
)

target_include_directories(imgui PUBLIC deps/glfw-3.4/include)
