summaryrefslogtreecommitdiff
path: root/examples/device/usbtmc
diff options
context:
space:
mode:
authorhathach <[email protected]>2023-04-21 18:23:40 +0700
committerhathach <[email protected]>2023-04-21 18:23:40 +0700
commit6daa135201b16c287f0b0d7ad7463877d471ceef (patch)
treea6806588d191483dcc2988851d754f8ea3508030 /examples/device/usbtmc
parent0afe1b36842c1542293e2133212aa0cfca9608c8 (diff)
update most examples cmake to build with imxrt
Diffstat (limited to 'examples/device/usbtmc')
-rw-r--r--examples/device/usbtmc/CMakeLists.txt9
1 files changed, 7 insertions, 2 deletions
diff --git a/examples/device/usbtmc/CMakeLists.txt b/examples/device/usbtmc/CMakeLists.txt
index b4678dc5e..a6b22ab36 100644
--- a/examples/device/usbtmc/CMakeLists.txt
+++ b/examples/device/usbtmc/CMakeLists.txt
@@ -1,15 +1,20 @@
-cmake_minimum_required(VERSION 3.5)
+cmake_minimum_required(VERSION 3.17)
include(${CMAKE_CURRENT_SOURCE_DIR}/../../../hw/bsp/family_support.cmake)
# gets PROJECT name for the example (e.g. <BOARD>-<DIR_NAME>)
family_get_project_name(PROJECT ${CMAKE_CURRENT_LIST_DIR})
-project(${PROJECT})
+project(${PROJECT} C CXX ASM)
# Checks this example is valid for the family and initializes the project
family_initialize_project(${PROJECT} ${CMAKE_CURRENT_LIST_DIR})
+# Espressif has its own cmake build system
+if(FAMILY STREQUAL "espressif")
+ return()
+endif()
+
add_executable(${PROJECT})
# Example source