feat: Introduce CMake build system for C++ project
This commit is contained in:
parent
4cbe3ce7c5
commit
1690cc5b77
1 changed files with 17 additions and 0 deletions
17
CMakeLists.txt
Normal file
17
CMakeLists.txt
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
cmake_minimum_required(VERSION 3.16)
|
||||||
|
project(observations-on-the-sublime-dynamics-of-eroding-matter)
|
||||||
|
|
||||||
|
set(CMAKE_CXX_STANDARD 17)
|
||||||
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||||
|
|
||||||
|
# Find SDL2
|
||||||
|
find_package(SDL2 REQUIRED)
|
||||||
|
|
||||||
|
# Add executable
|
||||||
|
add_executable(${PROJECT_NAME} src/main.cpp)
|
||||||
|
|
||||||
|
# Link SDL2
|
||||||
|
target_link_libraries(${PROJECT_NAME} SDL2::SDL2)
|
||||||
|
|
||||||
|
# Include directories for SDL2
|
||||||
|
target_include_directories(${PROJECT_NAME} PRIVATE ${SDL2_INCLUDE_DIRS})
|
Loading…
Add table
Add a link
Reference in a new issue