From: TimePath Date: Mon, 31 Jul 2017 12:33:03 +0000 (+1000) Subject: CMake: really fix installing gamepacks X-Git-Url: http://git.xonotic.org/?p=xonotic%2Fnetradiant.git;a=commitdiff_plain;h=973f6d2137044e056cb72b30cfe5b80ba6de312f;hp=b29c65724d2a4f6a5b37ed555b8b8456401fcfcc CMake: really fix installing gamepacks --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 928461de..9af79ce9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -242,26 +242,26 @@ install( ) set(GAME_FILES - DarkPlacesPack - NexuizPack - OpenArenaPack - OsirionPack - Q3Pack - Quake2Pack - QuakePack - QuetooPack - TremulousPack - UFOAIPack - UnvanquishedPack - WarsowPack - XonoticPack + DarkPlaces + Nexuiz + OpenArena + Osirion + Q3 + Quake2 + Quake + Quetoo + Tremulous + UFOAI + Unvanquished + Warsow + Xonotic ) unset(_tmp) foreach (it ${GAME_FILES}) - set(it "${PROJECT_BINARY_DIR}/games/${it}") - list(APPEND _tmp "${it}/games") - file(GLOB GAME_DIR "${it}/*.game") - list(APPEND _tmp "${GAME_DIR}") + set(dir "${PROJECT_BINARY_DIR}/games/${it}Pack") + string(TOLOWER "${it}" it) + list(APPEND _tmp "${dir}/games") + list(APPEND _tmp "${dir}/${it}.game") endforeach () set(GAME_FILES ${_tmp})