# Copyright (c) 2021 Dominic Msters # # This software is released under the MIT License. # https://opensource.org/licenses/MIT # Definitions add_compile_definitions( SETTING_PLATFORM_GLFW=1 SETTING_PLATFORM=1 SETTING_PLATFORM_USE_GLAD=1 ) # Libraries target_link_libraries(${PROJECT_NAME} PUBLIC glfw glad ) # Sources file(GLOB_RECURSE SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/*.c) file(GLOB_RECURSE HEADERS ${CMAKE_CURRENT_SOURCE_DIR}/*.h) target_sources(${PROJECT_NAME} PRIVATE ${SOURCES} ${HEADERS} ) # Includes target_include_directories(${PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR} )