Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #92 from TheJJ/cmakequotes
quotes for cmake variables
- Loading branch information
Showing
9 changed files
with
96 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
# Copyright 2014-2014 the openage authors. See copying.md for legal info. | ||
|
||
function(init_assets) | ||
set(GLOBAL_ASSET_DIR ${CMAKE_SOURCE_DIR}/assets) | ||
set(INSTALLED_GLOBAL_ASSET_DIR ${CMAKE_INSTALL_PREFIX}/share/openage) | ||
set(GLOBAL_ASSET_DIR "${CMAKE_SOURCE_DIR}/assets") | ||
set(INSTALLED_GLOBAL_ASSET_DIR "${CMAKE_INSTALL_PREFIX}/share/openage") | ||
|
||
install(DIRECTORY ${GLOBAL_ASSET_DIR}/ | ||
DESTINATION ${INSTALLED_GLOBAL_ASSET_DIR} | ||
install(DIRECTORY "${GLOBAL_ASSET_DIR}/" | ||
DESTINATION "${INSTALLED_GLOBAL_ASSET_DIR}" | ||
PATTERN .gitignore EXCLUDE) | ||
|
||
set(GLOBAL_ASSET_DIR ${GLOBAL_ASSET_DIR} PARENT_SCOPE) | ||
set(INSTALLED_GLOBAL_ASSET_DIR ${INSTALLED_GLOBAL_ASSET_DIR} PARENT_SCOPE) | ||
set(GLOBAL_ASSET_DIR "${GLOBAL_ASSET_DIR}" PARENT_SCOPE) | ||
set(INSTALLED_GLOBAL_ASSET_DIR "${INSTALLED_GLOBAL_ASSET_DIR}" PARENT_SCOPE) | ||
endfunction() | ||
|
||
init_assets() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.