-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
55 lines (43 loc) · 1.32 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
52
53
54
55
cmake_minimum_required(VERSION 3.6)
project(Barbecue)
#set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/")
#set(SDL2_DIR "${CMAKE_SOURCE_DIR}/ThirdParty/SDL2-2.0.5")
set(SDL2_IMAGE_LIBRARY "${CMAKE_SOURCE_DIR}/ThirdParty/SDL2_image-2.0.2/lib/x64/SDL2_image.lib")
set(SDL2_IMAGE_INCLUDE_DIR "${CMAKE_SOURCE_DIR}/ThirdParty/SDL2_image-2.0.2/include")
set(SDL2_LIBRARY "${CMAKE_SOURCE_DIR}/ThirdParty/SDL2-2.0.7/lib/x64/*.lib")
set(SDL2_INCLUDE_DIR "${CMAKE_SOURCE_DIR}/ThirdParty/SDL2-2.0.7/include")
#find_package(SDL2 REQUIRED)
#find_package(SDL2_image REQUIRED)
## executable target
## ! executable target
include_directories(${SDL2_INCLUDE_DIR}
${SDL2_IMAGE_INCLUDE_DIR}
)
set(SDL2_IMAGE_LIBRARIES ${SDL2_IMAGE_LIBRARY}
)
set(SDL2_LIBRARIES ${SDL2_LIBRARY}
)
add_executable(Barbecue
src/main.cpp
src/GraphicsCore.cpp
src/InputCore.cpp
src/Sprite.cpp
src/SpriteSheet.cpp
src/GameState.cpp
src/GameObject.cpp
src/BitmapFont.cpp
src/TileMap.cpp
inc/GraphicsCore.h
inc/InputCore.h
inc/Sprite.h
inc/SpriteSheet.h
inc/GameState.h
inc/GameObject.h
inc/BitmapFont.h
inc/TileMap.h
inc/common.h
)
source_group("resources" FILES ${RESOURCES})
target_link_libraries(Barbecue ${SDL2_IMAGE_LIBRARIES}
${SDL2_LIBRARIES}
)