complete rewrite of code as unlike snake and tic_tac_toe, this required bigger changes and more volatile changes all at once
This commit is contained in:
+6
-11
@@ -1,21 +1,16 @@
|
||||
cmake_minimum_required(VERSION 3.16)
|
||||
set(CMAKE_CXX_STANDARD 23)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||
project(pong)
|
||||
set(CMAKE_C_STANDARD 23)
|
||||
set(CMAKE_C_STANDARD_REQUIRED ON)
|
||||
include_directories(include)
|
||||
|
||||
set(SOURCES
|
||||
src/main.cpp
|
||||
src/input.cpp
|
||||
src/window.cpp
|
||||
src/elements.cpp
|
||||
src/engine.cpp
|
||||
src/timer.cpp
|
||||
)
|
||||
|
||||
add_executable(pong ${SOURCES})
|
||||
|
||||
target_include_directories(pong PRIVATE include)
|
||||
find_package(Curses REQUIRED)
|
||||
include_directories(${CURSES_INCLUDE_DIR})
|
||||
target_link_libraries(pong ${CURSES_LIBRARIES})
|
||||
|
||||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||
target_link_libraries(pong PRIVATE ${CURSES_LIBRARIES})
|
||||
|
||||
Reference in New Issue
Block a user