flatten build directories

This commit is contained in:
Akash Mozumdar 2018-12-22 16:11:41 -05:00
parent 1c391e3a4b
commit 19e7df5631
2 changed files with 5 additions and 5 deletions

View File

@ -18,10 +18,10 @@ add_definitions(
include_directories(include)
if("${CMAKE_SIZEOF_VOID_P}" STREQUAL "8")
set(CMAKE_FINAL_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/Builds/${CMAKE_BUILD_TYPE}/x64)
if(${CMAKE_SIZEOF_VOID_P} STREQUAL "8")
set(CMAKE_FINAL_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/Builds/${CMAKE_BUILD_TYPE}_x64)
else()
set(CMAKE_FINAL_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/Builds/${CMAKE_BUILD_TYPE}/x86)
set(CMAKE_FINAL_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/Builds/${CMAKE_BUILD_TYPE}_x86)
endif()
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_FINAL_OUTPUT_DIRECTORY})
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_FINAL_OUTPUT_DIRECTORY})

View File

@ -1,4 +1,4 @@
cd Builds/RelWithDebInfo/x86;
cd Builds/RelWithDebInfo_x86;
Compress-Archive -Force -DestinationPath Textractor -Path @(
"Textractor.exe",
"styles",
@ -16,7 +16,7 @@ Compress-Archive -Force -DestinationPath Textractor -Path @(
"Extensions.txt"
)
cd ../x64;
cd ../RelWithDebInfo_x64;
Compress-Archive -Force -DestinationPath Textractor -Path @(
"Textractor.exe",
"styles",