28 lines
712 B
CMake
28 lines
712 B
CMake
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
|
|
|
|
) |