Update CMakeLists.txt

Update CMakeLists.txt
This commit is contained in:
恍兮惚兮 2024-02-08 17:14:01 +08:00
parent 67a17849e8
commit 0265d2dd5b

View File

@ -18,6 +18,10 @@ add_compile_options(
/D_UNICODE
)
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
endif()
if(${CMAKE_SIZEOF_VOID_P} EQUAL 8)
set(bitappendix "64")
else()
@ -25,7 +29,7 @@ else()
endif()
set(CMAKE_FINAL_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/builds/${CMAKE_BUILD_TYPE}_x${bitappendix})
set(binary_out_putpath ${CMAKE_SOURCE_DIR}/builds/output)
set(binary_out_putpath ${CMAKE_SOURCE_DIR}/builds/${CMAKE_BUILD_TYPE})
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY $<1:${CMAKE_FINAL_OUTPUT_DIRECTORY}>)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY $<1:${binary_out_putpath}>)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY $<1:${binary_out_putpath}>)