forked from rasmusgo/torped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
65 lines (49 loc) · 1.6 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
56
57
58
59
60
61
62
63
64
65
# sudo apt install \
# freeglut3-dev \
# libglew-dev \
# libglut-dev \
# liblua5.1-dev \
# libopenal-dev \
# libphysfs-dev \
# libsdl-image1.2-dev \
# libsdl-net1.2-dev \
# libsdl-ttf2.0-dev \
# libtinyxml-dev \
# libvorbis-dev
# sudo port install git-lfs
# git lfs install
# git lfs fetch
# git lfs checkout
# sudo port install glew physfs libsdl libsdl_image lua51 tinyxml libvorbis libogg
cmake_minimum_required(VERSION 3.0.2)
project(TORPED_PROJECT)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
find_package(GLEW REQUIRED)
include_directories(${GLEW_INCLUDE_DIR})
find_package(GLUT REQUIRED)
include_directories(${GLUT_INCLUDE_DIR})
find_package(OpenAL REQUIRED)
include_directories(${OPENAL_INCLUDE_DIR})
find_package(OpenGL REQUIRED)
include_directories(${OPENGL_INCLUDE_DIR})
find_package(PhysFS REQUIRED)
include_directories(${PHYSFS_INCLUDE_DIR})
find_package(SDL REQUIRED)
include_directories(${SDL_INCLUDE_DIR})
find_package(SDL_image REQUIRED)
include_directories(${SDL_IMAGE_INCLUDE_DIR})
find_package(Lua51 REQUIRED)
include_directories(${LUA_INCLUDE_DIR})
find_library(OGG_LIBRARY ogg)
find_library(VORBIS_LIBRARY vorbis)
find_library(VORBISFILE_LIBRARY vorbisfile)
find_library(TINYXML_LIBRARY tinyxml)
add_subdirectory(thirdparty)
include_directories(
"${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/manymouse"
"${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/loguru"
)
set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib)
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR})
add_subdirectory(src)