-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
35 lines (31 loc) · 884 Bytes
/
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
cmake_minimum_required(VERSION 3.27)
project(hengine)
set(CMAKE_CXX_STANDARD 17)
add_executable(
hengine
main.cpp
source/Game.cpp)
INCLUDE(FindPkgConfig)
PKG_SEARCH_MODULE(SDL2 REQUIRED sdl2)
PKG_SEARCH_MODULE(SDL2IMAGE REQUIRED SDL2_image)
PKG_SEARCH_MODULE(SDL2MIXER REQUIRED SDL2_mixer)
PKG_SEARCH_MODULE(SDL2TTF REQUIRED SDL2_ttf)
PKG_SEARCH_MODULE(SDL2NET REQUIRED SDL2_net)
PKG_SEARCH_MODULE(SDL2GFX REQUIRED SDL2_gfx)
INCLUDE_DIRECTORIES(
${SDL2_INCLUDE_DIRS}
${SDL2IMAGE_INCLUDE_DIRS}
${SDL2MIXER_INCLUDE_DIRS}
${SDL2TTF_INCLUDE_DIRS}
${SDL2NET_INCLUDE_DIRS}
${SDL2GFX_INCLUDE_DIRS}
)
TARGET_LINK_LIBRARIES(
hengine
${SDL2_LIBRARIES}
${SDL2IMAGE_LIBRARIES}
${SDL2MIXER_LIBRARIES}
${SDL2TTF_LIBRARIES}
${SDL2NET_LIBRARIES}
${SDL2GFX_LIBRARIES}
)