Line
Link Here
|
0 |
-- CMakeLists.txt |
0 |
++ CMakeLists.txt |
Lines 27-33
Link Here
|
27 |
set(BINDIR "games" CACHE STRING "Directory from CMAKE_INSTALL_PREFIX where game executable will be installed.") |
27 |
set(BINDIR "games" CACHE STRING "Directory from CMAKE_INSTALL_PREFIX where game executable will be installed.") |
28 |
set(DATADIR "share/games/flare" CACHE STRING "Directory from CMAKE_INSTALL_PREFIX where game data files will be installed.") |
28 |
set(DATADIR "share/games/flare" CACHE STRING "Directory from CMAKE_INSTALL_PREFIX where game data files will be installed.") |
29 |
|
29 |
|
30 |
add_definitions(-DDATA_INSTALL_DIR="${CMAKE_INSTALL_PREFIX}/${DATADIR}") |
30 |
If(NOT IS_ABSOLUTE "${DATADIR}") |
|
|
31 |
add_definitions(-DDATA_INSTALL_DIR="${CMAKE_INSTALL_PREFIX}/${DATADIR}") |
32 |
Else(NOT IS_ABSOLUTE "${DATADIR}") |
33 |
add_definitions(-DDATA_INSTALL_DIR="${DATADIR}") |
34 |
EndIf(NOT IS_ABSOLUTE "${DATADIR}") |
31 |
|
35 |
|
32 |
# Detect missing dependencies |
36 |
# Detect missing dependencies |
33 |
|
37 |
|
Lines 163-172
Link Here
|
163 |
# installing to the proper places |
167 |
# installing to the proper places |
164 |
install(PROGRAMS |
168 |
install(PROGRAMS |
165 |
${CMAKE_CURRENT_BINARY_DIR}/flare |
169 |
${CMAKE_CURRENT_BINARY_DIR}/flare |
166 |
DESTINATION ${CMAKE_INSTALL_PREFIX}/${BINDIR}) |
170 |
DESTINATION ${BINDIR}) |
167 |
install(DIRECTORY |
171 |
install(DIRECTORY |
168 |
"${CMAKE_CURRENT_SOURCE_DIR}/mods" |
172 |
"${CMAKE_CURRENT_SOURCE_DIR}/mods" |
169 |
DESTINATION ${CMAKE_INSTALL_PREFIX}/${DATADIR}) |
173 |
DESTINATION ${DATADIR}) |
170 |
install(FILES |
174 |
install(FILES |
171 |
"${CMAKE_CURRENT_BINARY_DIR}/flare.desktop" |
175 |
"${CMAKE_CURRENT_BINARY_DIR}/flare.desktop" |
172 |
DESTINATION ${CMAKE_INSTALL_PREFIX}/share/applications) |
176 |
DESTINATION ${CMAKE_INSTALL_PREFIX}/share/applications) |