reorganized lib_jtag in paths

This commit is contained in:
2025-02-16 09:40:14 +01:00
parent f48e92f837
commit 5ddc9fe9b4
46 changed files with 4 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
set(SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/src")
set(SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}")
set(LIB_FTD2XXX "${CMAKE_CURRENT_SOURCE_DIR}/../libs/libftd2xx.a")
file(GLOB_RECURSE ALL_SOURCES "src/*.c")
file(GLOB_RECURSE ALL_SOURCES "*.c")
# Custom command to be executed before the build
add_custom_command(
@@ -20,6 +20,7 @@ add_custom_target(
add_compile_definitions(FTD2XX_STATIC)
add_compile_definitions(FTDILIB)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../libs)
add_library(jtag_core ${ALL_SOURCES})
add_dependencies(jtag_core prebuild)

View File

@@ -42,7 +42,7 @@
extern "C" {
#endif
#include "ftdi/ftd2xx.h"
#include "ftd2xx.h"
#ifdef __cplusplus
}