PC 端 linux 下cmake pdsk 例程,没有连接设备,报错
0
用的是官方pdsk Payload_SDK_V2.2.1-build.315\sample\platform\linux\manifold2\project
cmake 一直会报下面的错误
CMake Error at CMakeLists.txt:56 (target_link_libraries):
Target "test_demo" of type EXECUTABLE may not be linked into another
target. One may link only to STATIC or SHARED libraries, or to executables
with the ENABLE_EXPORTS property set.
Cmskelists.txt 这样写的
project(test_demo)
## Outputs
add_executable(${CMAKE_PROJECT_NAME} test_demo
${APP_SRC}
${COMMON_SRC}
${SAMPLE_SRC}
)
target_link_libraries(${CMAKE_PROJECT_NAME} test_demo)
请问最后这里应该怎么修改?
|
|
|
|