1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
|
## cmake 사용하기
> *Read this in other languages: [English](HowToSetProject-cmake.md), :kr: [한국어](HowToSetProject-cmake.ko.md)*
- 다음과 같은 명령어들을 입력하세요.
:one: MingW 사용하기
- QXlsx 라이브러리
```
mkdir build
cd build
cmake -G "MinGW Makefiles" ..\QXlsx\
mingw32-make
```
- HelloWorld
```
mkdir build2
cd build2
cmake -G "MinGW Makefiles" ..\HelloWorld\
mingw32-make
```
:two: Visual Studio 사용하기
- QXlsx 라이브러리 (Release Build)
```
mkdir build
cd build
cmake -G "Visual Studio 16 2019" ..\QXlsx\
MSBuild /nologo /t:Build /p:Configuration=Release QXlsx.vcxproj
```
- HelloWorld (Release Build)
```
mkdir build2
cd build2
cmake -G "Visual Studio 16 2019" ..\HelloWorld\
MSBuild /nologo /t:Build /p:Configuration=Release HelloWorld.vcxproj
```
- 또는, *.sln/*.vcxproj 파일들을 Visual Studio IDE에서 열어도 됩니다.
:three: Linux/Mac/Unix 사용하기
- QXlsx 라이브러리
```
mkdir build
cd build
cmake -G "Unix Makefiles" ../QXlsx/
make
```
- HelloWorld
```
mkdir build2
cd build2
cmake -G "Unix Makefiles" ../HelloWorld/
make
```
|