This repository has been archived by the owner on Feb 24, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
85 lines (66 loc) · 1.82 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
#
# Map Generator Build
#
# @author Natesh Narain
#
cmake_minimum_required(VERSION 3.1)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")
project(mapgen)
find_package(OpenGL REQUIRED)
find_package(SFML REQUIRED COMPONENTS system window graphics)
find_package(Boost REQUIRED)
add_subdirectory(src/external)
include_directories(
include/
${IMGUI_INCLUDE_DIRS}
${FASTNOISE_INCLUDE_DIRS}
${YAML_CPP_INCLUDE_DIR}
${LUA_INCLUDE_DIRS}
${LUABIND_INCLUDE_DIR}
${Boost_INCLUDE_DIRS}
)
set(HEADERS
include/windows/window.h
include/windows/parameter_window.h
include/windows/map_display_window.h
include/parameters/parameter_loader.h
include/parameters/noise_parameters.h
include/parameters/parameter_value.h
include/generator/map_generator.h
include/generator/map_generator_manager.h
include/generator/generator_buffer.h
include/generator/generator_buffer_proxy.h
include/generator/color.h
include/generator/gradient.h
include/script/script_engine.h
include/script/generator_script.h
include/script/layers.h
include/script/parameters.h
include/imgui_extension/imgui_extension.h
include/utils/utils.h
include/factory/fastnoise_factory.h
)
# Map Generator
add_executable(${PROJECT_NAME}
src/main.cpp
src/parameters/parameter_loader.cpp
src/imgui_extension/imgui_extension.cpp
src/script/script_engine.cpp
${HEADERS}
)
target_link_libraries(${PROJECT_NAME}
imgui
fastnoise
yaml-cpp
lua
luabind
${SFML_LIBRARIES}
${OPENGL_gl_LIBRARY}
)
###########################################################
### Installation ###
###########################################################
install(
TARGETS ${PROJECT_NAME}
RUNTIME DESTINATION bin
)