Closed dfy888 closed 1 year ago
this is my example CMakeLists.txt :
` cmake_minimum_required(VERSION 3.15)
SET(CMAKE_CXX_STANDARD 17)
file(MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/svg)
add_executable(main iir.cpp)
set(Python3_ROOT_DIR "/home/jiang/miniconda3/envs/py3_tf2_torch") find_package(Python3 COMPONENTS Interpreter Development REQUIRED) find_package(Python3 COMPONENTS NumPy)
include_directories(${Python3_INCLUDE_DIRS}) target_link_libraries(main ${Python3_LIBRARIES})
`
i always solve it!
The following modules are required by KFR tests and examples:
matplotlib scipy numpy
You should install it using pip prior to running examples.
this is my example
CMakeLists.txt :
` cmake_minimum_required(VERSION 3.15)
SET(CMAKE_CXX_STANDARD 17)
file(MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/svg)
add_executable(main iir.cpp)
set(Python3_ROOT_DIR "/home/jiang/miniconda3/envs/py3_tf2_torch") find_package(Python3 COMPONENTS Interpreter Development REQUIRED) find_package(Python3 COMPONENTS NumPy)
include_directories(${Python3_INCLUDE_DIRS}) target_link_libraries(main ${Python3_LIBRARIES})
`