Create CMakeLists.txt
This commit is contained in:
parent
7db832ce70
commit
9f27fbee68
20
CMakeLists.txt
Normal file
20
CMakeLists.txt
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
cmake_minimum_required(VERSION 3.10)
|
||||||
|
|
||||||
|
project(Obstacle)
|
||||||
|
|
||||||
|
set(CMAKE_CXX_STANDARD 17)
|
||||||
|
set(CMAKE_CXX_STANDARD_REQUIRED True)
|
||||||
|
|
||||||
|
find_package(SDL2 REQUIRED)
|
||||||
|
find_package(SDL2_image REQUIRED)
|
||||||
|
find_package(SDL2_ttf REQUIRED)
|
||||||
|
|
||||||
|
add_executable(Obstacle
|
||||||
|
Main.cpp
|
||||||
|
Game.cpp
|
||||||
|
Game.h
|
||||||
|
Helper.cpp
|
||||||
|
Helper.h
|
||||||
|
)
|
||||||
|
|
||||||
|
target_link_libraries(Obstacle SDL2::SDL2 SDL2_image::SDL2_image SDL2_ttf::SDL2_ttf)
|
Loading…
x
Reference in New Issue
Block a user