Last active
November 8, 2017 09:29
-
-
Save akosbalogh/6d44794913f9c89654b954a75d71ee43 to your computer and use it in GitHub Desktop.
Cmake file like our XCode settings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 3.8) | |
project(Prog1) | |
set(EXECUTABLE StoneAge) | |
set(CMAKE_C_STANDARD 11) | |
file(GLOB Prog1_sources *.c) | |
file(GLOB raylib_sources raylib/src/*.c) | |
file(GLOB raylib_external_sources raylib/src/external/*.c) | |
list(REMOVE_ITEM raylib_external_sources ${CMAKE_CURRENT_SOURCE_DIR}/raylib/src/external/tinfl.c) | |
set(sources ${Prog1_sources} ${raylib_sources} ${raylib_external_sources}) | |
find_package(glfw3 3.2.1 REQUIRED) | |
find_library(OPENGL_LIBRARY OpenGL) | |
find_library(OPENAL_LIBRARY OpenAL) | |
find_library(COCOA_LIBRARY Cocoa) | |
include_directories("raylib/src") | |
add_executable(${EXECUTABLE} ${sources}) | |
target_link_libraries(${EXECUTABLE} ${OPENGL_LIBRARY} ${OPENAL_LIBRARY} ${COCOA_LIBRARY} glfw) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment