- updated cmake to only place binaries in dev friendly folder if a new option is passed (enabled by default using the build script)

-DWANT_DEV_OUTPATH=ON
This commit is contained in:
Mark Vejvoda
2013-01-15 17:26:55 +00:00
parent 21f674abd9
commit 1e6364051b
4 changed files with 25 additions and 29 deletions

View File

@@ -125,12 +125,14 @@ IF(BUILD_MEGAGLEST_MODEL_VIEWER)
ENDIF(APPLE)
ENDFOREACH(DIR)
IF(UNIX AND NOT APPLE)
SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/mk/linux)
ELSE()
SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/data/glest_game)
ENDIF()
OPTION(WANT_DEV_OUTPATH "use developer friendly output paths" OFF)
IF(WANT_DEV_OUTPATH)
IF(UNIX AND NOT APPLE)
SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/mk/linux)
ELSE()
SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/data/glest_game)
ENDIF()
ENDIF()
FIND_PROGRAM(HELP2MAN "help2man")