-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split CMake example and test targets into multiple
CMakeLists.txt
- Loading branch information
1 parent
6754320
commit 5371758
Showing
29 changed files
with
882 additions
and
149 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Copyright (C) 2024 by Skyward | ||
# | ||
# This program is free software; you can redistribute it and/or | ||
# it under the terms of the GNU General Public License as published | ||
# the Free Software Foundation; either version 2 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# As a special exception, if other files instantiate templates or use | ||
# macros or inline functions from this file, or you compile this file | ||
# and link it with other works to produce a work based on this file, | ||
# this file does not by itself cause the resulting work to be covered | ||
# by the GNU General Public License. However the source code for this | ||
# file must still be made available in accordance with the GNU | ||
# Public License. This exception does not invalidate any other | ||
# why a work based on this file might be covered by the GNU General | ||
# Public License. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with this program; if not, see <http://www.gnu.org/licenses/> | ||
|
||
cmake_minimum_required(VERSION 3.25) | ||
|
||
project(Asm C CXX ASM) | ||
|
||
# Bypass the ckeck in miosix_settings.h | ||
add_compile_definitions($<$<COMPILE_LANGUAGE:C,CXX>:PARSING_FROM_IDE>) | ||
|
||
add_subdirectory(../.. miosix EXCLUDE_FROM_ALL) | ||
include(../../cmake/miosix_link_target.cmake) | ||
|
||
add_executable(asm main.s) | ||
miosix_link_target(asm stm32f407vg_discovery) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Copyright (C) 2024 by Skyward | ||
# | ||
# This program is free software; you can redistribute it and/or | ||
# it under the terms of the GNU General Public License as published | ||
# the Free Software Foundation; either version 2 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# As a special exception, if other files instantiate templates or use | ||
# macros or inline functions from this file, or you compile this file | ||
# and link it with other works to produce a work based on this file, | ||
# this file does not by itself cause the resulting work to be covered | ||
# by the GNU General Public License. However the source code for this | ||
# file must still be made available in accordance with the GNU | ||
# Public License. This exception does not invalidate any other | ||
# why a work based on this file might be covered by the GNU General | ||
# Public License. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with this program; if not, see <http://www.gnu.org/licenses/> | ||
|
||
cmake_minimum_required(VERSION 3.25) | ||
|
||
project(atsam4lLCD C CXX ASM) | ||
|
||
# Bypass the ckeck in miosix_settings.h | ||
add_compile_definitions($<$<COMPILE_LANGUAGE:C,CXX>:PARSING_FROM_IDE>) | ||
|
||
add_subdirectory(../.. miosix EXCLUDE_FROM_ALL) | ||
include(../../cmake/miosix_link_target.cmake) | ||
|
||
add_executable(atsam4l_lcd main.cpp) | ||
miosix_link_target(atsam4l_lcd atsam4lc2aa_generic) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Copyright (C) 2024 by Skyward | ||
# | ||
# This program is free software; you can redistribute it and/or | ||
# it under the terms of the GNU General Public License as published | ||
# the Free Software Foundation; either version 2 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# As a special exception, if other files instantiate templates or use | ||
# macros or inline functions from this file, or you compile this file | ||
# and link it with other works to produce a work based on this file, | ||
# this file does not by itself cause the resulting work to be covered | ||
# by the GNU General Public License. However the source code for this | ||
# file must still be made available in accordance with the GNU | ||
# Public License. This exception does not invalidate any other | ||
# why a work based on this file might be covered by the GNU General | ||
# Public License. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with this program; if not, see <http://www.gnu.org/licenses/> | ||
|
||
cmake_minimum_required(VERSION 3.25) | ||
|
||
project(BlinkingLED C CXX ASM) | ||
|
||
# Bypass the ckeck in miosix_settings.h | ||
add_compile_definitions($<$<COMPILE_LANGUAGE:C,CXX>:PARSING_FROM_IDE>) | ||
|
||
add_subdirectory(../.. miosix EXCLUDE_FROM_ALL) | ||
include(../../cmake/miosix_link_target.cmake) | ||
|
||
add_executable(blinking_led simple.cpp) | ||
miosix_link_target(blinking_led stm32f429zi_discovery) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Copyright (C) 2024 by Skyward | ||
# | ||
# This program is free software; you can redistribute it and/or | ||
# it under the terms of the GNU General Public License as published | ||
# the Free Software Foundation; either version 2 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# As a special exception, if other files instantiate templates or use | ||
# macros or inline functions from this file, or you compile this file | ||
# and link it with other works to produce a work based on this file, | ||
# this file does not by itself cause the resulting work to be covered | ||
# by the GNU General Public License. However the source code for this | ||
# file must still be made available in accordance with the GNU | ||
# Public License. This exception does not invalidate any other | ||
# why a work based on this file might be covered by the GNU General | ||
# Public License. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with this program; if not, see <http://www.gnu.org/licenses/> | ||
|
||
cmake_minimum_required(VERSION 3.25) | ||
|
||
project(Datalogger C CXX ASM) | ||
|
||
# Bypass the ckeck in miosix_settings.h | ||
add_compile_definitions($<$<COMPILE_LANGUAGE:C,CXX>:PARSING_FROM_IDE>) | ||
|
||
add_subdirectory(../.. miosix EXCLUDE_FROM_ALL) | ||
add_subdirectory(tscpp EXCLUDE_FROM_ALL) | ||
include(../../cmake/miosix_link_target.cmake) | ||
|
||
add_executable(datalogger main.cpp Logger.cpp) | ||
target_link_libraries(datalogger PUBLIC tscpp) | ||
miosix_link_target(datalogger stm32f407vg_discovery) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Copyright (C) 2024 by Skyward | ||
# | ||
# This program is free software; you can redistribute it and/or | ||
# it under the terms of the GNU General Public License as published | ||
# the Free Software Foundation; either version 2 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# As a special exception, if other files instantiate templates or use | ||
# macros or inline functions from this file, or you compile this file | ||
# and link it with other works to produce a work based on this file, | ||
# this file does not by itself cause the resulting work to be covered | ||
# by the GNU General Public License. However the source code for this | ||
# file must still be made available in accordance with the GNU | ||
# Public License. This exception does not invalidate any other | ||
# why a work based on this file might be covered by the GNU General | ||
# Public License. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with this program; if not, see <http://www.gnu.org/licenses/> | ||
|
||
cmake_minimum_required(VERSION 3.25) | ||
|
||
project(DeepSleep C CXX ASM) | ||
|
||
# Bypass the ckeck in miosix_settings.h | ||
add_compile_definitions($<$<COMPILE_LANGUAGE:C,CXX>:PARSING_FROM_IDE>) | ||
|
||
add_subdirectory(../.. miosix EXCLUDE_FROM_ALL) | ||
include(../../cmake/miosix_link_target.cmake) | ||
|
||
add_executable(deep_sleep main-test.cpp) | ||
miosix_link_target(deep_sleep stm32f407vg_discovery) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Copyright (C) 2024 by Skyward | ||
# | ||
# This program is free software; you can redistribute it and/or | ||
# it under the terms of the GNU General Public License as published | ||
# the Free Software Foundation; either version 2 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# As a special exception, if other files instantiate templates or use | ||
# macros or inline functions from this file, or you compile this file | ||
# and link it with other works to produce a work based on this file, | ||
# this file does not by itself cause the resulting work to be covered | ||
# by the GNU General Public License. However the source code for this | ||
# file must still be made available in accordance with the GNU | ||
# Public License. This exception does not invalidate any other | ||
# why a work based on this file might be covered by the GNU General | ||
# Public License. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with this program; if not, see <http://www.gnu.org/licenses/> | ||
|
||
cmake_minimum_required(VERSION 3.25) | ||
|
||
project(HD44780 C CXX ASM) | ||
|
||
# Bypass the ckeck in miosix_settings.h | ||
add_compile_definitions($<$<COMPILE_LANGUAGE:C,CXX>:PARSING_FROM_IDE>) | ||
|
||
add_subdirectory(../.. miosix EXCLUDE_FROM_ALL) | ||
include(../../cmake/miosix_link_target.cmake) | ||
|
||
add_executable(hd44780 hd44780.cpp) | ||
miosix_link_target(hd44780 stm32f407vg_discovery) |
Oops, something went wrong.