Dear Yanii:
The CMakeList.txt in src folder is :
x`ADD_EXECUTABLE(kitti2pcd kitti2pcd.cpp)
TARGET_LINK_LIBRARIES(kitti2pcd ${Boost_LIBRARIES} ${PCL_LIBRARIES})
INSTALL(TARGETS kitti2pcd kittitrackletextract
RUNTIME DESTINATION bin COMPONENT app
LIBRARY DESTINATION lib COMPONENT runtime
ARCHIVE DESTINATION lib COMPONENT runtime
PUBLIC_HEADER DESTINATION include COMPONENT dev
FRAMEWORK DESTINATION "/Library/Frameworks"
)
`
But in fact, the header file 'tracklets.h' is in 'include' folder, not 'src' folder, so I think the 4th line should be :ADD_EXECUTABLE(kittitrackletextract kittitrackletextract.cpp ${CMAKE_SOURCE_DIR}/../include/tracklets.h)
Dear Yanii: The CMakeList.txt in src folder is : x`ADD_EXECUTABLE(kitti2pcd kitti2pcd.cpp) TARGET_LINK_LIBRARIES(kitti2pcd ${Boost_LIBRARIES} ${PCL_LIBRARIES})
ADD_EXECUTABLE(kittitrackletextract kittitrackletextract.cpp ${CMAKE_SOURCE_DIR}/include/tracklets.h) TARGET_LINK_LIBRARIES(kittitrackletextract ${Boost_LIBRARIES} ${PCL_LIBRARIES})
INSTALL(TARGETS kitti2pcd kittitrackletextract RUNTIME DESTINATION bin COMPONENT app LIBRARY DESTINATION lib COMPONENT runtime ARCHIVE DESTINATION lib COMPONENT runtime PUBLIC_HEADER DESTINATION include COMPONENT dev FRAMEWORK DESTINATION "/Library/Frameworks" ) ` But in fact, the header file 'tracklets.h' is in 'include' folder, not 'src' folder, so I think the 4th line should be :ADD_EXECUTABLE(kittitrackletextract kittitrackletextract.cpp ${CMAKE_SOURCE_DIR}/../include/tracklets.h)