Skip to content

Study the principle of how `sudo make install` works (Korean only)

Notifications You must be signed in to change notification settings

LimHyungTae/cmake_make_install_study

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CmakeLists.txt를 통한 나만의 package 만들기

Test env.

Ubuntu 20.04

파일 설명

  • [Myproject]: 설치될 header 파일이 있는 프로젝트. sudo make install로 로컬 환경에 설치됨
  • [Myproject2]: Myproject를 참조하는 프로젝트. find_package(MyProject REQUIRED)로 참조함

How To Test

  1. Clone the repository
git clone git@github.com:LimHyungTae/cmake_make_install_study.git
  1. Build and install MyProject
$ cd MyProject && mkdir build && cd build
$ cmake .. && make -j 8 && sudo make install
  1. Build MyProject2 and run ./MyProject2Executable

About

Study the principle of how `sudo make install` works (Korean only)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published