From f654597a0efb95591b58c2d90e1ec1ecfc98d0d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jens=20B=C3=B6ckmann?= Date: Sun, 19 Nov 2023 17:02:34 +0100 Subject: [PATCH] Add crosscompile settings --- CMakePresets.json | 10 ++-------- app/CMakeLists.txt | 6 ++++-- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/CMakePresets.json b/CMakePresets.json index c2838d0..f9d239a 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -33,15 +33,9 @@ "generator": "Ninja Multi-Config", "binaryDir": "${sourceDir}/build/${presetName}", "cacheVariables": { - "CMAKE_C_COMPILER": "clang", - "CMAKE_CXX_COMPILER": "clang++" + "CMAKE_C_COMPILER": "C:/Program Files/LLVM/bin/clang.exe", + "CMAKE_CXX_COMPILER": "C:/Program Files/LLVM/bin/clang++.exe" } - }, - { - "name": "unix", - "displayName": "unix", - "generator": "Ninja", - "binaryDir": "${sourceDir}/build/${presetName}" } ] } \ No newline at end of file diff --git a/app/CMakeLists.txt b/app/CMakeLists.txt index 289aeb4..7442776 100644 --- a/app/CMakeLists.txt +++ b/app/CMakeLists.txt @@ -1,4 +1,6 @@ +if(CMAKE_CROSSCOMPILING) + add_subdirectory(embedded) -if(win32) - add_subdirectory(tests) +else() +add_subdirectory(tests) endif() \ No newline at end of file