cmake_minimum_required(VERSION 3.15) project(shooter) add_subdirectory(raylib) set (CMAKE_CXX_STANDARD 17) set (CMAKE_CXX_COMPILER clang++) add_executable(${PROJECT_NAME} src/yabs_core.cpp src/yabs_utils.cpp src/main.cpp ) target_link_libraries(${PROJECT_NAME} raylib m ) target_compile_options(${PROJECT_NAME} PRIVATE "-O3" PRIVATE "-march=native" PRIVATE "-Wall" PRIVATE "-glldb" ) # Checks if OSX and links appropriate frameworks (only required on MacOS) if (APPLE) target_link_libraries(${PROJECT_NAME} "-framework IOKit") target_link_libraries(${PROJECT_NAME} "-framework Cocoa") target_link_libraries(${PROJECT_NAME} "-framework OpenGL") endif()