arch: move build related files to subdirectory

This commit is contained in:
anna 2021-08-10 00:55:03 +02:00
parent d4411fd6b6
commit 1bc2448c91
Signed by: fef
GPG key ID: EC22E476DC2D3D84
7 changed files with 3 additions and 3 deletions

View file

@ -3,14 +3,14 @@
cmake_minimum_required(VERSION 3.14.0) cmake_minimum_required(VERSION 3.14.0)
include(options.cmake) include(options.cmake)
include(arch/${ARCH}/toolchain.cmake) include(arch/${ARCH}/config/toolchain.cmake)
project(ardix VERSION 0.1.0 LANGUAGES C ASM) project(ardix VERSION 0.1.0 LANGUAGES C ASM)
set(CMAKE_C_STANDARD 17) set(CMAKE_C_STANDARD 17)
set(CMAKE_C_EXTENSIONS OFF) set(CMAKE_C_EXTENSIONS OFF)
if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME) if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
set_property(GLOBAL PROPERTY USE_FOLDERS ON) set_property(GLOBAL PROPERTY USE_FOLDERS ON)
endif() endif()
find_package(Git QUIET) find_package(Git QUIET)

View file

@ -13,7 +13,7 @@ target_include_directories(ardix_arch PRIVATE
target_compile_definitions(ardix_arch PRIVATE ARDIX_ARCH) target_compile_definitions(ardix_arch PRIVATE ARDIX_ARCH)
configure_file( configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/config.ld.in ${CMAKE_CURRENT_SOURCE_DIR}/config/config.ld.in
${CMAKE_BINARY_DIR}/config.ld # see toolchain.cmake ${CMAKE_BINARY_DIR}/config.ld # see toolchain.cmake
) )