blob: c4d77f2369c1f8977408cf7c0cf6d8e826a6d5c5 (
plain) (
blame)
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
|
cmake_minimum_required (VERSION 3.1)
project (Ether)
set(CMAKE_BUILD_TYPE Debug)
# Set directory to look for package helpers.
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${Ether_SOURCE_DIR}/cmake")
IF(MSVC)
set(SDL2 "${Ether_SOURCE_DIR}/vendor/SDL2")
set(SDL2IMAGEDIR "${Ether_SOURCE_DIR}/vendor/SDL2_Image")
set(SDL2_TTF_PATH "${Ether_SOURCE_DIR}/vendor/SDL2_ttf")
set(APP_ICON_RESOURCE_WINDOWS "${Ether_SOURCE_DIR}/res/appicon.rc")
add_compile_definitions(MSVC)
ENDIF(MSVC)
find_package(SDL2 REQUIRED)
find_package(SDL2_Image REQUIRED)
find_package(SDL2_TTF REQUIRED)
set(ALL_LIBS
${SDL2_LIBRARY}
${SDL2_IMAGE_LIBRARIES}
${SDL2_TTF_LIBRARIES}
fmodstudio
fmod
)
include_directories(
${SDL2_INCLUDE_DIR}
${SDL2_IMAGE_INCLUDE_DIRS}
${SDL2_TTF_INCLUDE_DIRS}
src
vendor
vendor/fmod/inc
)
link_directories(
vendor/fmod/lib
)
add_executable(Ether
src/main.cpp
src/renderer.cpp
src/muxer.cpp
src/animation.cpp
src/game.cpp
src/sign.cpp
src/menu.cpp
src/runtime_test.cpp
vendor/fov.c
${APP_ICON_RESOURCE_WINDOWS}
)
set_property(TARGET Ether PROPERTY CXX_STANDARD 20)
set_property(TARGET Ether PROPERTY CXX_STANDARD_REQUIRED ON)
IF(MSVC)
set_target_properties(Ether PROPERTIES WIN32_EXECUTABLE TRUE)
ENDIF(MSVC)
target_link_libraries(Ether ${ALL_LIBS})
|