CMAKE: reorganized and added some things like ncurses

This commit is contained in:
DarthMooMancer
2025-09-01 00:38:03 -04:00
parent 2780fa2efc
commit 0d215201fc
2 changed files with 18 additions and 9 deletions
+16 -7
View File
@@ -1,11 +1,20 @@
cmake_minimum_required(VERSION 3.10) cmake_minimum_required(VERSION 3.16)
project(breakout) project(breakout)
include_directories(include)
set(SOURCES src/main.cpp)
add_executable(breakout ${SOURCES})
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(CMAKE_C_STANDARD 23) set(CMAKE_C_STANDARD 23)
set(CMAKE_C_STANDARD_REQUIRED ON) set(CMAKE_C_STANDARD_REQUIRED ON)
include_directories(include)
# find_package(SDL3 CONFIG REQUIRED) # An example of how to import libraries from vcpkg set(SOURCES
# target_link_libraries(Game PRIVATE SDL3::SDL3) src/main.cpp
# src/input.cpp
# src/window.cpp
# src/elements.cpp
)
add_executable(breakout ${SOURCES})
find_package(Curses REQUIRED)
include_directories(${CURSES_INCLUDE_DIR})
target_link_libraries(breakout ${CURSES_LIBRARIES})
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)