-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
51 lines (42 loc) · 1.15 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
cmake_minimum_required(VERSION 3.26)
project(tetris-2024)
#set(CMAKE_EXE_LINKER_FLAGS "-static-libgcc -static-libstdc++")
#set(CMAKE_EXE_LINKER_FLAGS "-static")
include_directories(
libs/include/SDL2
)
link_directories(
libs/lib
)
add_executable(test_font_easysdl
test/easy_sdl_font.cpp
src/easy_sdl.cpp
)
target_link_libraries(test_font_easysdl SDL2 SDL2_image SDL2_ttf)
add_executable(test_asset_easysdl
test/easy_sdl_asset.cpp
src/easy_sdl.cpp
)
target_link_libraries(test_asset_easysdl SDL2 SDL2_image SDL2_ttf)
add_executable(test_init_easysdl
test/easy_sdl_init.cpp
src/easy_sdl.cpp
)
target_link_libraries(test_init_easysdl SDL2 SDL2_image SDL2_ttf)
add_executable(demo_menu
src/easy_sdl.cpp
main.cpp
)
target_link_libraries(demo_menu SDL2 SDL2_image SDL2_ttf)
add_executable(first_demo
test/loading_assets.cpp
src/easy_sdl.cpp
src/testris_asset.cpp
)
target_link_libraries(first_demo SDL2 SDL2_image SDL2_ttf)
add_executable(tetris
main.cpp
src/game_engine.cpp
src/easy_sdl.cpp
)
target_link_libraries(tetris SDL2 SDL2_image SDL2_ttf)