-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
executable file
·38 lines (28 loc) · 1.05 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
project("TRABALHO SI RPG" CXX C)
cmake_minimum_required(VERSION 2.8)
find_package(SDL REQUIRED)
find_package(SDL_image REQUIRED)
file(GLOB_RECURSE variable src/*.cpp src/*.h)
add_executable( game ${variable}
)
set(FILEPATH src/GameFiles/)
file(COPY
${FILEPATH}playersprites4x.png
${FILEPATH}font4x.png
${FILEPATH}textbackground4x.png
${FILEPATH}tileimage4x.png
${FILEPATH}tilemap.map
${FILEPATH}pokemon.json
DESTINATION ${CMAKE_BINARY_DIR}/Content )
set(CMAKE_CXX_FLAGS "-Wall -g")
if(UNIX)
message("Unix Detected, using shared libraries for Linux")
include_directories( ${SDL_INCLUDE_DIR} ${SDL_IMAGE_INCLUDE_DIR} )
set(COMPILER_LIBS ${SDL_LIBRARY} ${SDL_IMAGE_LIBRARY})
else(UNIX)
message("Windows Detected, using static libraries for Windows")
set(COMPILER_LIBS -lmingw32
-lSDLmain -lSDL -lwinmm -mwindows -liconv -lm -luser32 -lgdi32 -lwinmm -ldxguid
-ltiff -llzma -ljpeg -lpng16 -lz -lSDL_image)
endif(UNIX)
target_link_libraries(game ${COMPILER_LIBS} )