Skip to content

Commit

Permalink
修改cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
FaithALL committed Nov 2, 2021
1 parent 23d775d commit 7bf4431
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
cmake-build-debug
.idea
4 changes: 3 additions & 1 deletion toy/lifeGame/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@ project(lifeGame)

set(CMAKE_CXX_STANDARD 17)

find_package(SDL2 REQUIRED)
include_directories(${SDL2_INCLUDE_DIRS})
add_executable(lifeGame main.cpp Game.hpp)
target_link_libraries(lifeGame -lSDL2)
target_link_libraries(lifeGame ${SDL2_LIBRARIES})

0 comments on commit 7bf4431

Please sign in to comment.