reorganized lib_jtag in paths
This commit is contained in:
@@ -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")
|
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
|
# Custom command to be executed before the build
|
||||||
add_custom_command(
|
add_custom_command(
|
||||||
@@ -20,6 +20,7 @@ add_custom_target(
|
|||||||
add_compile_definitions(FTD2XX_STATIC)
|
add_compile_definitions(FTD2XX_STATIC)
|
||||||
add_compile_definitions(FTDILIB)
|
add_compile_definitions(FTDILIB)
|
||||||
|
|
||||||
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../libs)
|
||||||
|
|
||||||
add_library(jtag_core ${ALL_SOURCES})
|
add_library(jtag_core ${ALL_SOURCES})
|
||||||
add_dependencies(jtag_core prebuild)
|
add_dependencies(jtag_core prebuild)
|
||||||
|
|||||||
@@ -42,7 +42,7 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "ftdi/ftd2xx.h"
|
#include "ftd2xx.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user