Index

zydeco / 0dd781a

Experiment in graphics programming, C++, OpenGL, simulation techniques.

Latest Commit

{#}TimeHashSubjectAuthor#(+)(-)GPG?
405 Aug 2023 20:500dd781aCreate event handling and threads structureJosh Stockin164G

Blob @ zydeco / CMakeLists.txt

text/plain929 bytesdownload raw
1# CMake info
2cmake_minimum_required(VERSION 3.22)
3
4project("zydeco")
5
6
7# Locations
8set(SOURCE_DIR "src")
9set(INCLUDE_DIR "include" "include/sdl2" "include/events")
10
11
12# Compile settings
13set(CMAKE_CXX_STANDARD 20)
14set(COMPILE_OPTIONS "-O3 -Wall -Wextra -pedantic")
15
16if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
17 add_compile_options (-fdiagnostics-color=always)
18elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
19 add_compile_options (-fcolor-diagnostics)
20endif ()
21
22
23# Add source files
24include_directories(${INCLUDE_DIR})
25set(PROGRAM_SOURCES
26 "${SOURCE_DIR}/main.cpp"
27 "${SOURCE_DIR}/Engine.cpp"
28 "${SOURCE_DIR}/util/Fault.cpp"
29 "${SOURCE_DIR}/util/Logger.cpp"
30 "${SOURCE_DIR}/sdl2/EventHandlerSDL2.cpp"
31 "${SOURCE_DIR}/sdl2/WindowSDL2.cpp"
32)
33
34
35# Link libraries
36find_package(cpptrace REQUIRED)
37link_libraries("fmt" "cpptrace::cpptrace" "SDL2" "GL")
38
39
40# Output
41add_executable("zydeco" ${PROGRAM_SOURCES})
42