You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
628 B
15 lines
628 B
if(NOT DEFINED ModuleName OR ModuleName EQUAL "")
|
|
set(ModuleName "DefaultModule")
|
|
endif()
|
|
|
|
# BUILD_ARCH:x86_64 aarch64 参考 gcc -v 结果的 Target
|
|
if(NOT DEFINED BUILD_ARCH)
|
|
set(BUILD_ARCH x86_64 CACHE STRING "Arch of this project")
|
|
endif()
|
|
|
|
if(NOT "${CMAKE_ARCHIVE_OUTPUT_DIRECTORY}" STREQUAL "${CMAKE_BINARY_DIR}/../lib/${BUILD_ARCH}/")
|
|
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib/${BUILD_ARCH}/)
|
|
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib/${BUILD_ARCH}/)
|
|
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/)
|
|
endif()
|
|
link_directories(${CMAKE_ARCHIVE_OUTPUT_DIRECTORY}) |