Skip to content
This repository
Newer
Older
100644 201 lines (177 sloc) 6.123 kb
6ae58751 »
2011-06-03 Import from svn r385
1 Project (Flare)
2 cmake_minimum_required (VERSION 2.6)
3
4 Set (PACKAGE "FLARE")
9994be45 »
2012-09-20 Increment to version 0.17
5 Set (VERSION "0.17")
6ae58751 »
2011-06-03 Import from svn r385
6
981f607c »
2011-11-07 Improvements to CMake, setting up different compiler options when bui…
7
8 # Default definitions
e7e8df78 »
2012-05-12 Fix MSVC build (inp conflicts with MSVC function)
9 if (MSVC)
e56b6d9a »
2012-08-22 cmake file: make compilation easy with clang.
10 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4099 /wd4244")
e7e8df78 »
2012-05-12 Fix MSVC build (inp conflicts with MSVC function)
11 else (MSVC)
e30aecb8 »
2012-09-24 CMake: enable -Wunreachable-code and -fwhole-program for gcc/clang.
12 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wunused -Wshadow -Woverloaded-virtual -Wunreachable-code")
cc7d6652 »
2012-09-27 CMakeLists: add -ffast-math to compile options.
13 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-math-errno -fno-exceptions -ffast-math")
e30aecb8 »
2012-09-24 CMake: enable -Wunreachable-code and -fwhole-program for gcc/clang.
14 set(CMAKE_LD_FLAGS "-fwhole-program")
e7e8df78 »
2012-05-12 Fix MSVC build (inp conflicts with MSVC function)
15 endif (MSVC)
e56b6d9a »
2012-08-22 cmake file: make compilation easy with clang.
16
17 if (CMAKE_CXX_COMPILER MATCHES "clang")
18 # clang needs lstdc++ linked explicitly:
e30aecb8 »
2012-09-24 CMake: enable -Wunreachable-code and -fwhole-program for gcc/clang.
19 set(CMAKE_LD_FLAGS "${CMAKE_LD_FLAGS} -lstdc++")
e56b6d9a »
2012-08-22 cmake file: make compilation easy with clang.
20 else (CMAKE_CXX_COMPILER MATCHES "clang")
21 # assume gcc:
22 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-enforce-eh-specs")
23 endif (CMAKE_CXX_COMPILER MATCHES "clang")
24
981f607c »
2011-11-07 Improvements to CMake, setting up different compiler options when bui…
25 if(CMAKE_BUILD_TYPE STREQUAL "Release")
06ecd757 »
2012-09-30 Remove -flto build flag (not supported on some systems)
26 set(CMAKE_CXX_FLAGS_RELEASE "-O2 -g0")
981f607c »
2011-11-07 Improvements to CMake, setting up different compiler options when bui…
27 elseif(CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo")
06ecd757 »
2012-09-30 Remove -flto build flag (not supported on some systems)
28 set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -g")
981f607c »
2011-11-07 Improvements to CMake, setting up different compiler options when bui…
29 elseif(CMAKE_BUILD_TYPE STREQUAL "MinSizeRel")
30 set(CMAKE_CXX_FLAGS_MINSIZEREL "-Os -g0")
31 elseif(CMAKE_BUILD_TYPE STREQUAL "Debug")
32 set(CMAKE_CXX_FLAGS_DEBUG "-O0 -g3 -pg")
33 set(CMAKE_EXE_LINKER_FLAGS_DEBUG "-pg")
34 set(CMAKE_SHARED_LINKER_FLAGS_DEBUG "-pg")
35 set(CMAKE_MODULE_LINKER_FLAGS_DEBUG "-pg")
36 endif()
37
842ef892 »
2012-02-15 Minor documentation changes.
38 set(BINDIR "games" CACHE STRING "Directory from CMAKE_INSTALL_PREFIX where game executable will be installed.")
39 set(DATADIR "share/games/flare" CACHE STRING "Directory from CMAKE_INSTALL_PREFIX where game data files will be installed.")
981f607c »
2011-11-07 Improvements to CMake, setting up different compiler options when bui…
40
86747d1a »
2012-07-11 allow absolute paths for DATADIR and BINDIR
41 If(NOT IS_ABSOLUTE "${DATADIR}")
42 add_definitions(-DDATA_INSTALL_DIR="${CMAKE_INSTALL_PREFIX}/${DATADIR}")
43 Else(NOT IS_ABSOLUTE "${DATADIR}")
44 add_definitions(-DDATA_INSTALL_DIR="${DATADIR}")
45 EndIf(NOT IS_ABSOLUTE "${DATADIR}")
981f607c »
2011-11-07 Improvements to CMake, setting up different compiler options when bui…
46
6ae58751 »
2011-06-03 Import from svn r385
47 # Detect missing dependencies
48
49 Find_Package (SDL REQUIRED)
50 If (NOT SDL_FOUND)
51 Message (FATAL_ERROR "Couldn't find SDL development files. On Debian-based systems (such as Ubuntu) you should install the 'libsdl1.2-dev' package.")
52 Else (NOT SDL_FOUND)
53 Include_Directories (${SDL_INCLUDE_DIR})
54 EndIf (NOT SDL_FOUND)
55
56 Find_Package (SDL_mixer REQUIRED)
57 If (NOT SDLMIXER_FOUND)
58 Message (FATAL_ERROR "Couldn't find SDL-mixer development files. On Debian-based systems (such as Ubuntu) you should install the 'libsdl-mixer1.2-dev' package.")
59 Else (NOT SDLMIXER_FOUND)
60 Include_Directories (${SDLMIXER_INCLUDE_DIR})
61 EndIf (NOT SDLMIXER_FOUND)
62
63 Find_Package (SDL_image REQUIRED)
64 If (NOT SDLIMAGE_FOUND)
65 Message (FATAL_ERROR "Couldn't find SDL-image development files. On Debian-based systems (such as Ubuntu) you should install the 'libsdl-image1.2-dev' package.")
66 Else (NOT SDLIMAGE_FOUND)
67 Include_Directories (${SDLIMAGE_INCLUDE_DIR})
68 EndIf (NOT SDLIMAGE_FOUND)
69
e70acc6a »
2011-07-20 Converts FontEngine to use SDL_ttf in preparation for UTF-8
70 Find_Package (SDL_ttf REQUIRED)
71 If (NOT SDLTTF_FOUND)
648f9f9c »
2011-12-12 SDL_TTF version fix on install info
72 Message (FATAL_ERROR "Couldn't find SDL-ttf development files. On Debian-based systems (such as Ubuntu) you should install the 'libsdl-ttf2.0-dev' package.")
e70acc6a »
2011-07-20 Converts FontEngine to use SDL_ttf in preparation for UTF-8
73 Else (NOT SDLTTF_FOUND)
74 Include_Directories (${SDLTTF_INCLUDE_DIR})
75 EndIf (NOT SDLTTF_FOUND)
76
6ae58751 »
2011-06-03 Import from svn r385
77
78 # Sources
79
f9477736 »
2012-08-17 Make flags to disable exception handling.
80 Set (FLARE_SOURCES
413012b6 »
2011-10-26 MessageEngine reading .po files. Forgot to add in many files.
81 ./src/Entity.cpp
82 ./src/Animation.cpp
95b832fd »
2012-09-20 Rewrite Animations system.
83 ./src/AnimationManager.cpp
84 ./src/AnimationSet.cpp
21035963 »
2011-12-20 A* implementation
85 ./src/AStarNode.cpp
413012b6 »
2011-10-26 MessageEngine reading .po files. Forgot to add in many files.
86 ./src/Avatar.cpp
af250edb »
2012-03-13 Starting work on the new EnemyBehavior components
87 ./src/BehaviorStandard.cpp
413012b6 »
2011-10-26 MessageEngine reading .po files. Forgot to add in many files.
88 ./src/CampaignManager.cpp
fe15a9c6 »
2012-02-13 Added support for floating combat text.
89 ./src/CombatText.cpp
413012b6 »
2011-10-26 MessageEngine reading .po files. Forgot to add in many files.
90 ./src/Enemy.cpp
af250edb »
2012-03-13 Starting work on the new EnemyBehavior components
91 ./src/EnemyBehavior.cpp
413012b6 »
2011-10-26 MessageEngine reading .po files. Forgot to add in many files.
92 ./src/EnemyGroupManager.cpp
93 ./src/EnemyManager.cpp
94 ./src/FileParser.cpp
95 ./src/FontEngine.cpp
96 ./src/GameState.cpp
4c0427e7 »
2012-05-06 Renamed recent source files for consistency
97 ./src/GameStateConfig.cpp
413012b6 »
2011-10-26 MessageEngine reading .po files. Forgot to add in many files.
98 ./src/GameStateTitle.cpp
99 ./src/GameStateLoad.cpp
100 ./src/GameStatePlay.cpp
101 ./src/GameStateNew.cpp
102 ./src/GameSwitcher.cpp
d00e5b50 »
2011-11-19 ItemDatabase now reads items.txt files from every mod.
103 ./src/GetText.cpp
413012b6 »
2011-10-26 MessageEngine reading .po files. Forgot to add in many files.
104 ./src/Hazard.cpp
105 ./src/HazardManager.cpp
2cc7d88a »
2012-09-27 Introduce the ImageManager class.
106 ./src/ImageManager.cpp
413012b6 »
2011-10-26 MessageEngine reading .po files. Forgot to add in many files.
107 ./src/InputState.cpp
b5880450 »
2011-11-21 Updated source file names in CMakeLists
108 ./src/ItemManager.cpp
413012b6 »
2011-10-26 MessageEngine reading .po files. Forgot to add in many files.
109 ./src/ItemStorage.cpp
110 ./src/LootManager.cpp
111 ./src/MapCollision.cpp
f39327e1 »
2012-07-08 Renaming MapIso to MapRenderer.
112 ./src/MapRenderer.cpp
413012b6 »
2011-10-26 MessageEngine reading .po files. Forgot to add in many files.
113 ./src/Menu.cpp
114 ./src/MenuActionBar.cpp
13fcab3f »
2012-07-08 Create MenuActiveEffects for displaying buffs/debuffs
115 ./src/MenuActiveEffects.cpp
413012b6 »
2011-10-26 MessageEngine reading .po files. Forgot to add in many files.
116 ./src/MenuCharacter.cpp
117 ./src/MenuConfirm.cpp
118 ./src/MenuEnemy.cpp
119 ./src/MenuExit.cpp
120 ./src/MenuHUDLog.cpp
121 ./src/MenuInventory.cpp
122 ./src/MenuItemStorage.cpp
123 ./src/MenuLog.cpp
124 ./src/MenuManager.cpp
125 ./src/MenuMiniMap.cpp
126 ./src/MenuPowers.cpp
aeee8786 »
2012-07-27 Add MenuStash and trigger it a stash map event
127 ./src/MenuStash.cpp
de2a72cf »
2012-07-11 Create MenuStatBar to replace HP/MP/XP menus
128 ./src/MenuStatBar.cpp
413012b6 »
2011-10-26 MessageEngine reading .po files. Forgot to add in many files.
129 ./src/MenuTalker.cpp
130 ./src/MenuVendor.cpp
131 ./src/MessageEngine.cpp
136535c4 »
2011-10-28 Added ModManager.cpp to CMakeLists.txt
132 ./src/ModManager.cpp
413012b6 »
2011-10-26 MessageEngine reading .po files. Forgot to add in many files.
133 ./src/NPC.cpp
134 ./src/NPCManager.cpp
135 ./src/PowerManager.cpp
136 ./src/QuestLog.cpp
137 ./src/SaveLoad.cpp
92f7805b »
2012-07-08 Full alpha transparency for the avatar
138 ./src/SDL_gfxBlitFunc.c
413012b6 »
2011-10-26 MessageEngine reading .po files. Forgot to add in many files.
139 ./src/Settings.cpp
972e7879 »
2011-11-21 Moved some resources into shared space instead of passing around poin…
140 ./src/SharedResources.cpp
413012b6 »
2011-10-26 MessageEngine reading .po files. Forgot to add in many files.
141 ./src/StatBlock.cpp
142 ./src/TileSet.cpp
143 ./src/Utils.cpp
532ccc1d »
2012-05-06 Add activable with command line --debug_event flag debug traces for S…
144 ./src/UtilsDebug.cpp
413012b6 »
2011-10-26 MessageEngine reading .po files. Forgot to add in many files.
145 ./src/UtilsFileSystem.cpp
146 ./src/UtilsParsing.cpp
4c0427e7 »
2012-05-06 Renamed recent source files for consistency
147 ./src/WidgetCheckBox.cpp
413012b6 »
2011-10-26 MessageEngine reading .po files. Forgot to add in many files.
148 ./src/WidgetButton.cpp
149 ./src/WidgetInput.cpp
af250edb »
2012-03-13 Starting work on the new EnemyBehavior components
150 ./src/WidgetLabel.cpp
7d1696c7 »
2012-06-07 Created WidgetListBox
151 ./src/WidgetListBox.cpp
92f7805b »
2012-07-08 Full alpha transparency for the avatar
152 ./src/WidgetScrollBar.cpp
153 ./src/WidgetScrollBox.cpp
3ee406d5 »
2012-05-08 Add a slider widget
154 ./src/WidgetSlider.cpp
af250edb »
2012-03-13 Starting work on the new EnemyBehavior components
155 ./src/WidgetTabControl.cpp
b5880450 »
2011-11-21 Updated source file names in CMakeLists
156 ./src/WidgetTooltip.cpp
413012b6 »
2011-10-26 MessageEngine reading .po files. Forgot to add in many files.
157 ./src/main.cpp
6ae58751 »
2011-06-03 Import from svn r385
158 )
159
d28cb56a »
2011-12-17 Add icon and file info for Windows Executable
160 # Add icon and file info to executable for Windows systems
161 IF (WIN32)
f9477736 »
2012-08-17 Make flags to disable exception handling.
162 SET(FLARE_SOURCES
d28cb56a »
2011-12-17 Add icon and file info for Windows Executable
163 ${FLARE_SOURCES}
164 ./src/Flare.rc
165 )
166 ENDIF (WIN32)
6ae58751 »
2011-06-03 Import from svn r385
167
168 Add_Executable (flare ${FLARE_SOURCES})
0f0a64cf »
2011-10-09 SDLMAIN_LIBRARY cmake fix contributed by Matt Rice
169
170 # libSDLMain comes with libSDL if needed on certain platforms
171 If (NOT SDLMAIN_LIBRARY)
172 Set (SDLMAIN_LIBRARY "")
173 EndIf (NOT SDLMAIN_LIBRARY)
174
e56b6d9a »
2012-08-22 cmake file: make compilation easy with clang.
175 Target_Link_Libraries (flare ${CMAKE_LD_FLAGS} ${SDL_LIBRARY} ${SDLMIXER_LIBRARY} ${SDLIMAGE_LIBRARY} ${SDLTTF_LIBRARY} ${SDLMAIN_LIBRARY})
b6aa51f8 »
2011-10-26 Issue #94: Implementing 'make install' target by modifying cmake conf…
176
177
591af48a »
2012-07-13 fix .desktop file
178 # desktop file
179 If(NOT IS_ABSOLUTE "${BINDIR}")
180 set(FLARE_EXECUTABLE_PATH ${CMAKE_INSTALL_PREFIX}/${BINDIR}/flare)
181 Else(NOT IS_ABSOLUTE "${BINDIR}")
182 set(FLARE_EXECUTABLE_PATH ${BINDIR}/flare)
183 EndIf(NOT IS_ABSOLUTE "${BINDIR}")
d32a77ac »
2011-11-19 Improving slightly the distribution on Unix systems, by using the rea…
184 configure_file("${CMAKE_CURRENT_SOURCE_DIR}/distribution/flare.desktop.in" "${CMAKE_CURRENT_BINARY_DIR}/flare.desktop")
185
186
b6aa51f8 »
2011-10-26 Issue #94: Implementing 'make install' target by modifying cmake conf…
187 # installing to the proper places
d32a77ac »
2011-11-19 Improving slightly the distribution on Unix systems, by using the rea…
188 install(PROGRAMS
189 ${CMAKE_CURRENT_BINARY_DIR}/flare
86747d1a »
2012-07-11 allow absolute paths for DATADIR and BINDIR
190 DESTINATION ${BINDIR})
b6aa51f8 »
2011-10-26 Issue #94: Implementing 'make install' target by modifying cmake conf…
191 install(DIRECTORY
f7975588 »
2011-11-05 Add mods folder to make install
192 "${CMAKE_CURRENT_SOURCE_DIR}/mods"
86747d1a »
2012-07-11 allow absolute paths for DATADIR and BINDIR
193 DESTINATION ${DATADIR})
73eb5f96 »
2011-10-26 Adding .desktop file, and configuring CMake so it installs the logo a…
194 install(FILES
d32a77ac »
2011-11-19 Improving slightly the distribution on Unix systems, by using the rea…
195 "${CMAKE_CURRENT_BINARY_DIR}/flare.desktop"
73eb5f96 »
2011-10-26 Adding .desktop file, and configuring CMake so it installs the logo a…
196 DESTINATION ${CMAKE_INSTALL_PREFIX}/share/applications)
197 install(FILES
f415bbf8 »
2012-09-17 Re-add icons and some engine config files
198 "${CMAKE_CURRENT_SOURCE_DIR}/distribution/flare_logo.svg"
73eb5f96 »
2011-10-26 Adding .desktop file, and configuring CMake so it installs the logo a…
199 DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/scalable/apps
200 RENAME flare.svg)
Something went wrong with that request. Please try again.