Skip to content

Commit

Permalink
fixed import error
Browse files Browse the repository at this point in the history
  • Loading branch information
drebbe-intrepid committed Nov 8, 2024
1 parent 4c36781 commit 06de7b2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ cmake_minimum_required (VERSION 3.25)
project (libneoradio2_all LANGUAGES C CXX)

option(BUILD_PYTHON_BINDINGS "Enable Python bindings" OFF)
option(BUILD_SHARED_LIBS "Build shared libraries" OFF)

add_subdirectory(libneoradio2)

Expand Down
5 changes: 3 additions & 2 deletions libneoradio2/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ project(libneoradio2 VERSION 1.3.1 LANGUAGES C CXX)

add_definitions(-DLIBNEORADIO2_EXPORTS)

option(BUILD_SHARED_LIBS "Build shared libraries" OFF)

set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
Expand All @@ -19,10 +21,9 @@ set(SourceFiles
${CMAKE_CURRENT_SOURCE_DIR}/src/libneoradio2.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/neoradio2device.cpp)

add_library(${PROJECT_NAME} STATIC ${SourceFiles})
add_library(${PROJECT_NAME} ${SourceFiles})
target_include_directories(${PROJECT_NAME} PUBLIC ${IncludeDirectories})


add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/hidapi)
target_link_libraries(${PROJECT_NAME} hidapi)

0 comments on commit 06de7b2

Please sign in to comment.