1
0
mirror of https://github.com/pevans/erc-c.git synced 2024-08-21 15:28:59 +00:00
erc-c/CMakeLists.txt
Peter Evans b646bfc511 First stab at adding graphics.
This involves using glfw. This first commit creates a window but doesn't
do anything with it; it also just hangs until you can escape out
somehow.
2017-12-16 22:45:39 -06:00

23 lines
398 B
CMake

cmake_minimum_required(VERSION 3.9)
# it me
project(erc)
include(sources.cmake)
foreach(src ${erc_sources})
string(CONCAT relsrc src/ ${src})
list(APPEND sources ${relsrc})
endforeach(src)
# our header files
include_directories(include /usr/local/include)
link_directories(/usr/local/lib)
# our bullshit
add_executable(erc ${sources} src/main.c)
# Graphics
target_link_libraries(erc glfw)