summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorYuxin Zhou <[email protected]>2021-07-28 07:25:46 +0000
committerYuxin Zhou <[email protected]>2021-07-28 07:25:46 +0000
commit3574b6bc518553adefe70d82db907ae801786d6f (patch)
treeeadc713a8c532d2519bff2b6da93d31c8a98995b /CMakeLists.txt
parent756899739082fd013048ae6a39dab556fddc8a11 (diff)
Release 6.1.8v6.1.8_rel
Diffstat (limited to 'CMakeLists.txt')
-rwxr-xr-xCMakeLists.txt7
1 files changed, 5 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d331df4..ddf8291 100755
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -2,7 +2,6 @@ cmake_minimum_required(VERSION 3.0.0 FATAL_ERROR)
# Set up the project
project(usbx
- VERSION 6.0.0
LANGUAGES C ASM
)
@@ -28,7 +27,11 @@ target_link_libraries(${PROJECT_NAME} PUBLIC
set(CUSTOM_INC_DIR ${CMAKE_CURRENT_BINARY_DIR}/custom_inc)
# Pick up the port specific stuff first
-add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/ports/${THREADX_ARCH}/${THREADX_TOOLCHAIN})
+if(DEFINED USBX_CUSTOM_PORT)
+ add_subdirectory(${USBX_CUSTOM_PORT} usbx_port)
+else()
+ add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/ports/${THREADX_ARCH}/${THREADX_TOOLCHAIN})
+endif()
# Then the common files
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/common)