RyanHub - file viewer
filename: CMakeLists.txt
branch: main
back to repo
cmake_minimum_required(VERSION 3.10)
project(game C)

set(CMAKE_C_STANDARD 99)

set(SOURCES
    game.c
    external/glad.c
)

include_directories(
    ${CMAKE_SOURCE_DIR}/includes
    ${CMAKE_SOURCE_DIR}/external
)

link_directories(${CMAKE_SOURCE_DIR}/external/lib)

add_executable(game ${SOURCES})

if (WIN32)
    target_link_libraries(game glfw3 opengl32)
else()
    target_link_libraries(game glfw GL)
endif()