diff options
Diffstat (limited to 'CMakeLists.txt')
| -rwxr-xr-x | CMakeLists.txt | 7 |
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) |
