Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on May 4, 2019. It is now read-only.

added asm compilation #30

Merged
merged 1 commit into from
Dec 8, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ cmake_minimum_required(VERSION 2.8)
#====================================================================#
# Setup Project #
#====================================================================#
project(ArduinoExample C CXX)
project(ArduinoExample C CXX ASM)

print_board_list()
print_programmer_list()
Expand Down
15 changes: 8 additions & 7 deletions cmake/Platform/Core/SourceFinder.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,22 @@ function(find_sources VAR_NAME LIB_PATH RECURSE)
set(FILE_SEARCH_LIST
${LIB_PATH}/*.cpp
${LIB_PATH}/*.c
${LIB_PATH}/*.s
${LIB_PATH}/*.S
${LIB_PATH}/*.cc
${LIB_PATH}/*.cxx
${LIB_PATH}/*.h
${LIB_PATH}/*.hh
${LIB_PATH}/*.hxx)
${LIB_PATH}/*.hxx
${LIB_PATH}/*.[sS]
)

if (RECURSE)
file(GLOB_RECURSE LIB_FILES ${FILE_SEARCH_LIST})
file(GLOB_RECURSE SOURCE_FILES ${FILE_SEARCH_LIST})
else ()
file(GLOB LIB_FILES ${FILE_SEARCH_LIST})
file(GLOB SOURCE_FILES ${FILE_SEARCH_LIST})
endif ()

if (LIB_FILES)
set(${VAR_NAME} ${LIB_FILES} PARENT_SCOPE)
if (SOURCE_FILES)
set(${VAR_NAME} ${SOURCE_FILES} PARENT_SCOPE)
endif ()
endfunction()