회원 로그인
|
CMake 소개
:CMake로 마야 플러그인 컴파일을 하기 위한 예로 참고(구글 번역)
Compiling Maya plug-ins with CMake
CMake로 Maya 플러그인 컴파일하기
The problem
문제
There are many different development environments.
다양한 개발 환경이 있습니다.
And Maya versions of Maya.
그리고 마야의 많은 버전.
We do not want to maintain multiple visual studio projects, makefiles, xcode projects, etc.
우리는 여러 개의 비주얼 스튜디오 프로젝트, 메이크 파일, xcode 프로젝트 등을 유지하고 싶지 않습니다.
Ideally, we could maintain a single build file that would work across all platforms and all versions of maya.
이상적으로 모든 플랫폼과 모든 버전의 Maya에서 작동 할 수있는 단일 빌드 파일을 유지 관리 할 수 있습니다.
CMake
The cross-platform, open-source build system.
크로스 플랫폼, 오픈 소스 빌드 시스템
CMake allows us to maintain a single set of bulid scripts which can be used to generate the build environment for your desired platform.
CMake를 사용하면 원하는 플랫폼에 맞는 빌드 환경을 생성하는데, 사용할 수 있는 단일 스크립트 세트를 유지 관리 할 수 있습니다.
cmakelists.txt
CMake works by processing text files called cmakelists.txt.
CMake는 cmakelists.txt라는 텍스트 파일을 처리하여 작동합니다.
The cmakelists.txt is used to specify where libraries and headers are located in order to properly compile and link your project.
cmakelists.txt는 프로젝트를 제대로 컴파일하고, 링크하기 위해 라이브러리 및 헤더가있는 위치를 지정하는 데 사용됩니다.
CMake modules
CMake 모듈
A CMake module is a file that tells CMake where associated files and directories are on the local system.
CMake 모듈은 관련된 파일과 디렉토리가 로컬 시스템에있는 곳을 CMake에게 알려주는 파일입니다.
CMake ships with many prebuilt modules such as:
CMake는 다음과 같은 많은 사전 빌드 된 모듈을 제공합니다.
FindCUDA.cmake
FindMatlab.cmake
FindOpenGL.cmake
FindPythonLibs.cmake
Modules are located in the <CMake_install_dir>\share\cmake-3.1\Modules or similar directory.
모듈은 CMak설치폴더\share\cmake-3.1\Modules 또는 유사한 디렉토리에 있습니다.
Maya
마야
Sadly, there is no FindMaya.cmake that ships with CMake.
슬프게도, CMake와 함께 제공되는 FindMaya.cmake는 없습니다.
We will write our own!
우리는 우리 자신을 쓸 것입니다!
Summary
개요
CMake lets us maintain a single set of scripts to help us compile on multiple platforms.
CMake는 여러 플랫폼에서 컴파일하는데 도움이 되는 단일 스크립트 세트를 유지 관리합니다.
CMake works by writing cmakeLists.txt script files.
CMake는 cmakeLists.txt 스크립트 파일을 작성하여 작동합니다.
Modules help CMake find packages and dependencies on the local system.
모듈은 CMake가 로컬 시스템에서 패키지 및 종속성을 찾도록 도와줍니다.
CMake can do a lot more such as package installation, configuration, and platform-independent file operations.
CMake는 패키지 설치, 구성 및 플랫폼 독립적 인 파일 작업과 같이 훨씬 많은 작업을 수행 할 수 있습니다.
Read about it all at https://cmake.org
https://cmake.org에서 이 모든 것을 읽으십시오.
참고
튜토리얼
댓글 0개
| 엮인글 0개
285개(3/15페이지)
번호 | 제목 | 글쓴이 | 조회 | 날짜 |
---|---|---|---|---|
245 | [Python] Shotgun Python API | 푸딩뱃살 | 2318 | 2019.10.15 14:55 |
244 | [Python] PyCharm의 Windows Defender | 푸딩뱃살 | 2655 | 2019.10.08 10:26 |
243 | [Python] PyCharm Install Packages Failed | 푸딩뱃살 | 3300 | 2019.10.04 11:56 |
242 | [Python] Jupyter notebook 패스워드 변경 | 푸딩뱃살 | 2846 | 2019.09.25 22:02 |
241 | [Python] jupyter notebook에서 opencv 사용 시 오류 | 푸딩뱃살 | 2763 | 2019.09.21 00:10 |
240 | [Python] PyCharm과 Anaconda 연동 / 한글 인코딩 설정 | 푸딩뱃살 | 2352 | 2019.09.09 18:33 |
>> | [CMake] CMake 소개 | 푸딩뱃살 | 1597 | 2019.05.23 15:19 |
238 | [CMake] 윈도우용 USD 빌드하기 | 푸딩뱃살 | 3129 | 2019.05.20 23:42 |
237 | [TensorFlow] Tensor Ranks, Shapes, Types | 푸딩뱃살 | 1892 | 2019.05.19 00:07 |
236 | [Python] pytube - 파이썬 유튜브 라이브러리 | 푸딩뱃살 | 2342 | 2019.04.24 14:34 |
235 | [Xcode] failed to connect to bundle 'com.회사명.앱명' | 푸딩뱃살 | 1603 | 2019.03.22 11:06 |
234 | [TensorFlow] TensorFlow Dev Summit 2019 영상 | 푸딩뱃살 | 1329 | 2019.03.13 10:33 |
233 | [Python] 파이썬 패키지 다운로드 | 푸딩뱃살 | 1995 | 2019.02.20 10:52 |
232 | [TensorFlow] TensorFlow은 무엇? | 푸딩뱃살 | 2900 | 2019.01.25 16:59 |
231 | [Python] Python Visual C++ 컴파일 버전 | 푸딩뱃살 | 2163 | 2019.01.24 18:25 |
230 | [TensorFlow] Jupyter Kernel Restarting | 푸딩뱃살 | 2510 | 2019.01.23 13:03 |
229 | [Python] Anaconda 설치 / 가상환경 / Jupyter 사용 | 푸딩뱃살 | 6082 | 2019.01.20 19:33 |
228 | [TensorFlow] TensorFlow 설치 | 푸딩뱃살 | 2692 | 2019.01.20 16:18 |
227 | [Python] OpenCV | 푸딩뱃살 | 745 | 2019.01.07 17:37 |
226 | [Python] Python AI | 푸딩뱃살 | 3104 | 2018.09.11 21:21 |