Skip to content

Commit

Permalink
Enabled Digilent blob detection for CMake build
Browse files Browse the repository at this point in the history
  • Loading branch information
azonenberg committed Jul 3, 2018
1 parent 9d7fc82 commit 424efae
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions CMakeLists.txt
Expand Up @@ -3,12 +3,20 @@ project(jtaghal)
set(CMAKE_BUILD_TYPE Release)

find_library(FTD2XX_LIB ftd2xx)
find_library(DJTG_LIB djtg)

if(FTD2XX_LIB)
message(STATUS "Enabling FTDI backend (using D2XX blob)")
set(CMAKE_C_FLAGS "-DHAVE_FTD2XX")
set(CMAKE_CXX_FLAGS "-DHAVE_FTD2XX")
endif()

if(DJTG_LIB)
message(STATUS "Enabling Digilent integrated programmer backend (using Digilent blob)")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DHAVE_DJTG")
set(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} -DHAVE_DJTG")
endif()

add_subdirectory("${PROJECT_SOURCE_DIR}/lib/xptools")

add_subdirectory("${PROJECT_SOURCE_DIR}/lib/log")
Expand Down
2 changes: 1 addition & 1 deletion lib/jtaghal
Submodule jtaghal updated 1 files
+3 −0 CMakeLists.txt

0 comments on commit 424efae

Please sign in to comment.