Insert SET_BIN_DIR macro everywhere except Mod

This commit is contained in:
mdinger
2014-04-10 22:08:11 -04:00
committed by wmayer
parent d137a9ef05
commit 085736095e
7 changed files with 21 additions and 139 deletions

View File

@@ -204,6 +204,7 @@ MACRO(GET_MSVC_PRECOMPILED_SOURCE PrecompiledSource SourcesVar)
ENDIF(MSVC)
ENDMACRO(GET_MSVC_PRECOMPILED_SOURCE)
# Macro to replace all the binary output locations
MACRO(SET_BIN_DIR ProjectName OutputName OutputDir)
set_target_properties(${ProjectName} PROPERTIES OUTPUT_NAME ${OutputName})
if(WIN32)
@@ -215,6 +216,7 @@ MACRO(SET_BIN_DIR ProjectName OutputName OutputDir)
endif(WIN32)
if(MSVC_IDE)
# dirty hack to avoid Debug/Release subdirectory
set_target_properties(${ProjectName} PROPERTIES PREFIX "../")
endif(MSVC_IDE)
ENDMACRO(SET_BIN_DIR)