Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

A mis-configuration in the CMakeList #4

Open
MaYaowei opened this issue Aug 20, 2018 · 1 comment
Open

A mis-configuration in the CMakeList #4

MaYaowei opened this issue Aug 20, 2018 · 1 comment

Comments

@MaYaowei
Copy link

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)

@MaYaowei
Copy link
Author

I add '..' between source_dir and 'include'

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant