Automation/CMakeLists.txt
Quantum 3029d22fd8
Cleanup / Wextra
Added -Wextra and fixed warnings that appeared

Converted olcPixelGameEngine to unix line endings because it was
annoying me
2021-05-01 17:30:05 -04:00

17 lines
504 B
CMake

cmake_minimum_required(VERSION 3.10)
project(main)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED True)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Werror")
include_directories(src)
add_definitions(-g)
add_definitions(-fsanitize=address)
file(GLOB SOURCES "src/*.cpp" "src/**/*.cpp")
add_executable(${CMAKE_PROJECT_NAME} ${SOURCES})
target_link_libraries(${CMAKE_PROJECT_NAME} X11 GL pthread png stdc++fs)
target_link_options(${CMAKE_PROJECT_NAME} PRIVATE -fsanitize=address)