Merge branch 'cmake-experiments' of https://github.com/qmk/qmk_firmware into cmake-experiments

This commit is contained in:
Jack Humbert
2023-04-04 20:55:17 -04:00
3 changed files with 9 additions and 7 deletions
+5 -3
View File
@@ -1,7 +1,9 @@
include(ExternalProject)
include(AddKeyboard)
# file(WRITE "${CMAKE_SOURCE_DIR}/build/targets" "")
if(NOT EXISTS "${CMAKE_SOURCE_DIR}/build/targets")
file(WRITE "${CMAKE_SOURCE_DIR}/build/targets" "")
endif()
# if(DEFINED QMK_KEYBOARD_FOLDER)
# if(NOT DEFINED QMK_KEYMAP_FOLDER)
@@ -37,4 +39,4 @@ foreach(KEYBOARD_INFO ${POSSIBLE_KEYBOARDS})
get_filename_component(KEYBOARD_FOLDER_ABS "${KEYBOARD_INFO}" DIRECTORY)
file(RELATIVE_PATH KEYBOARD_FOLDER "${CMAKE_SOURCE_DIR}/keyboards" "${KEYBOARD_FOLDER_ABS}")
file(APPEND "${CMAKE_SOURCE_DIR}/build/all_keyboards" "${KEYBOARD_FOLDER}\n")
endforeach()
endforeach()