- 文件的层级结构如上面所示
- 对应的CMakeLists.txt配置文件如下面所示
cmake_minimum_required(VERSION 3.15)
project(smart_shap)set(CMAKE_CXX_STANDARD 14)add_executable(${PROJECT_NAME} main.cpp )#target_link_directories(${PROJECT_NAME} PRIVATE ${PROJECT_SOURCE_DIR})target_link_libraries(${PROJECT_NAME} PRIVATE ${PROJECT_SOURCE_DIR}/lib/libhsm_core.so -lpthread -lm)