CMakeList.txt 에 include_directories 와 link_directories 설정 방법좀 알려주세요

우분투에 SDK 설치 중인데 CMakeList.txt 문서안에 include_directories 와 link_directories
설정 방법좀 알려주세요.
설명서 보면서 따라 하고 있는데요 설명서 본문은 이렇습니다.
1.Clone (or download as zip) the Onboard-SDK-ROS from Github [here](https://github.com/dji-sdk/Onboard-SDK-ROS).
2.Clone (or download as zip) the Terra-UTM-SDK from Github [here](https://github.com/TerraDrone/Terra-UTM-SDK).
The folder structure would be like this.
$ tree -L 1
.
├── get-pip.py
├── Onboard-SDK
├── Onboard-SDK-ROS
└── Terra-UTM-SDK
3.On this root directory, please follow steps below:
$ mkdir -p catkin_ws/src
$ cd $_
##### Patch change Libs for Onboard-SDK-ROS
$ cp -pr ../../Terra-UTM-SDK/changeDjiLibs.patch ../../Onboard-SDK-ROS/
$ cd ../../Onboard-SDK-ROS/
$ git apply changeDjiLibs.patch
$ cd ~/catkin_ws/src
$ cp -pr ../../Terra-UTM-SDK/sample terra_utm
$ cp -pr ../../Terra-UTM-SDK/terra_utm_sdk .
$ cp -pr ../../Terra-UTM-SDK/initLibs .
$ cp -pr ../../Onboard-SDK-ROS/dji_sdk .
* If build for DJI, rename app/CMakeLists.txt.dji to app/CMakeLists.txt
##### Building ROS Node(DroneCore) #####
The folder structure would be like this.
$ tree -L 1
.
├── get-pip.py
├── DroneCore
└── Terra-UTM-SDK
2.On this root directory, please follow steps below:
$ mkdir -p catkin_ws/src
$ cd $_
$ cp -pr ../../Terra-UTM-SDK/sample terra_utm
$ cp -pr ../../Terra-UTM-SDK/terra_utm_sdk .
$ cp -pr ../../Terra-UTM-SDK/initLibs .
$ cp -pr ../../DroneCore .
* If build for PIXHAWK, rename app/CMakeLists.txt.dronecore to app/CMakeLists.txt
* Please check **include_directories** and **link_directories** in CMakeLists.txt. Please set paths for DroneCore.
마지막 CMakeLists.txt 텍스트 안에 DroneCore 경로를 추가 해야하는데요 CMakeLists.txt텍스트 내용입니다.
## Specify additional locations of header files
## Your package locations should be listed before other locations
# include_directories(include)
include_directories(
include
${catkin_INCLUDE_DIRS}
${CMAKE_CURRENT_SOURCE_DIR}/../libs/tinyxml
${CMAKE_CURRENT_SOURCE_DIR}/../libs/json
${CMAKE_CURRENT_SOURCE_DIR}/../libs/curlpp/include
/usr/local/include/dronecore
)
link_directories(/usr/local/lib)
참고해보세요.
윈도우에서 CMakeList.txt 를 CMake 로 컴파일 할때.
- set() 등으로. 환경변수에 경로를 지정해주지 않거나. 조건분기가 등록되지 않아서. 컴파일 오류가 발생한 경우가 있었습니다.
이와 같은 방식을 사용하기도 하나봅니다.
- add_library()
- target_include_directories()
- target_link_libraries()
//해결 방식
- set() add_library() target_include_directories() 등에 함수가 성공한 예제를 참고
- 성공한 블로그나 업체 사이트 등에 문의
- 잘되는 컴퓨터. 예제소스가 있는 책. 사이트. 등에 내용을 참고
//OnBoard SDK 참고
https://developer.dji.com/onboard-sdk/documentation/sample-doc/sample-setup.html#ros-oes
https://github.com/dji-sdk/Onboard-SDK
//TERRA-UTM-SDK 가 없어졌네요. 본사에 연락
https://utm.terra-drone.net/contact/
utm-inquiry@terra-drone.co.jp
https://youtubedescargar.site/watch?v=yFNEqyOQ4-E
//CMakeList.txt 에 include_directories 와 link_directories 구글 검색
http://webnautes.tistory.com/1054
http://simmmmmk.tistory.com/19
https://books.google.co.kr/books?id=rSuuDQAAQBAJ&pg=PA656&lpg=PA656&dq=CMakeList.txt+%EC%97%90+include_directories+%EC%99%80+link_directories&source=bl&ots=5MdXuMqy9I&sig=Z3SDvv8avwBVorlttowOwbrYHq8&hl=ko&sa=X&ved=2ahUKEwiAxaDJ2oDdAhVHUt4KHZKaDycQ6AEwEHoECAMQAQ#v=onepage&q=CMakeList.txt%20%EC%97%90%20include_directories%20%EC%99%80%20link_directories&f=false
http://pr0gr4m.tistory.com/1
https://techbase.kde.org/Development/Tutorials/CMake_(ko)
https://books.google.co.kr/books?id=ArZrCgAAQBAJ&pg=PA83&lpg=PA83&dq=CMakeList.txt+에+include_directories+와+link_directories&source=bl&ots=d1unx0xcRe&sig=y-uCG5Y5569lHHfGrJ3sKnk5PYc&hl=ko&sa=X&ved=2ahUKEwiAxaDJ2oDdAhVHUt4KHZKaDycQ6AEwCnoECAoQAQ#v=onepage&q=CMakeList.txt%20에%20include_directories%20와%20link_directories&f=false
https://kldp.org/node/122815
https://techbase.kde.org/Development/Tutorials/First_program_(ko)
http://repilria.tistory.com/412
https://www.tuwlab.com/ece/27260
https://stackoverflow.com/questions/19460707/how-to-set-include-directories-from-a-cmakelists-txt-file
https://cmake.org/pipermail/cmake/2010-June/037261.html
http://enssionaut.com/xe/board_robotics/1264
https://developer.android.com/studio/projects/add-native-code?hl=ko
//전에 테스트 했던. 정보를 첨부파일로 올려봅니다.
버전도 확인해보세요.
개발하시는 내용과는 전혀 무관한 내용입니다.
//link_directories(/usr/local/lib) 로 구글 검색해보니. 그럴법한 내용이 조금 보이네요.
https://answers.ros.org/question/10543/how-do-i-link-a-library-in-cmake/
https://stackoverflow.com/questions/31438916/cmake-cannot-find-library-using-link-directories
https://stackoverflow.com/questions/31438916/cmake-cannot-find-library-using-link-directories/40554704
https://stackoverflow.com/questions/39249421/cmake-dynamically-links-a-files-in-usr-local-lib
https://cmake.org/pipermail/cmake/2009-May/029529.html
https://github.com/udacity/CarND-MPC-Project/blob/master/CMakeLists.txt
https://github.com/BioDynaMo/biodynamo/blob/master/CMakeLists.txt
https://lists.linuxfoundation.org/pipermail/automotive-discussions/2017-December/005305.html
https://www.argos-sim.info/forum/viewtopic.php?t=129
https://junshengfu.github.io/Model-Predictive-Control/CMakeLists.txt
https://oceanai.mit.edu/svn/moos-ivp-aro/trunk/ivp/src/CMakeLists.txt
https://dev.opencascade.org/index.php?q=node/1182
https://intellij-support.jetbrains.com/hc/en-us/community/posts/206608335-How-can-I-specify-additional-include-files-
https://redmine.webtoolkit.eu/boards/2/topics/1227
http://www.orocos.org/forum/rtt/rtt-dev/undefined-reference-linker-process
http://jermmy.xyz/2017/04/26/2017-4-27-learn-cmake-3/
https://www.reddit.com/r/cpp/comments/7oaxug/using_a_local_copy_of_boost_with_cmake/
https://eprints.soton.ac.uk/419409/8/CMakeLists.txt
http://derekmolloy.ie/hello-world-introductions-to-cmake/
https://medium.com/cops-iitbhu/setting-up-aruco-library-on-your-pc-7e07d6837c7e
//
https://devtalk.nvidia.com/default/topic/1033169/jetson-tx2/how-to-inlcude-opencv-on-samplefasterrcnn/
http://pointclouds.org/documentation/tutorials/greedy_projection.php
https://medium.com/cops-iitbhu/setting-up-aruco-library-on-your-pc-7e07d6837c7e
//
https://kldp.org/node/117743
https://kldp.org/node/88394
----------------------------------------------------------------------------
젊음'은 모든것을 가능하게 만든다.
매일 1억명이 사용하는 프로그램을 함께 만들어보고 싶습니다.
정규 근로 시간을 지키는. 야근 없는 회사와 거래합니다.
각 분야별. 좋은 책'이나 사이트' 블로그' 링크 소개 받습니다. shintx@naver.com
shint 님께. 질문을 읽고 답을 해 주세요.
우분투에 SDK 설치 중인데 CMakeList.txt 문서안에 include_directories 와 link_directories
설정 방법좀 알려주세요.
라고 질문했는데...
윈도우에서 CMakeList.txt 를 CMake 로 컴파일 할때.
라고 답을 하시면...
질문한 사람에게 도움이 별로 알 되겠죠?
세벌 https://sebuls.blogspot.kr/
윈도우나 리눅스나 CMakeList.txt 사용방법은 같습니다.
ㅇ_ㅇ;;
- 그렇다고. 지금 문제에 대한 답은 아닐 수 있습니다.
- 현재 알려드린 사항은 CMakeList.txt 의 함수 / 참고할 예제 사이트 / 해결 방식 등. 입니다.
- 그보다. TERRA-UTM-SDK 가 없어졌으니. 더 큰일이네요. ㅇ_ㅇ;;
----------------------------------------------------------------------------
젊음'은 모든것을 가능하게 만든다.
매일 1억명이 사용하는 프로그램을 함께 만들어보고 싶습니다.
정규 근로 시간을 지키는. 야근 없는 회사와 거래합니다.
각 분야별. 좋은 책'이나 사이트' 블로그' 링크 소개 받습니다. shintx@naver.com
shint 님께. 질문을 읽고 답을 해 주세요.
우분투에 SDK 설치 중인데 CMakeList.txt 문서안에 include_directories 와 link_directories
설정 방법좀 알려주세요.
라고 질문했는데...
윈도우에서 CMakeList.txt 를 CMake 로 컴파일 할때.
라고 답을 하시면...
질문한 사람에게 도움이 별로 알 되겠죠?
shint 님 글에 댓글 달려 했는데 실수로 여기 달았네요. 저에게 삭제권한 없어 그대로 둡니다.
세벌 https://sebuls.blogspot.kr/
댓글 달기