| 1 |
This folder was created as follows: |
| 2 |
|
| 3 |
(1) |
| 4 |
|
| 5 |
curl -L -O https://github.com/google/etc2comp/archive/9cd0f9c.zip |
| 6 |
unzip 9cd0f9c.zip |
| 7 |
mv etc2comp-* etc2comp |
| 8 |
|
| 9 |
(2) |
| 10 |
|
| 11 |
Remove the outer IF block and the EtcTool line from CMakeLists.txt |
| 12 |
|
| 13 |
(3) |
| 14 |
|
| 15 |
Add this line to EtcLib/CMakeLists.txt: |
| 16 |
|
| 17 |
target_include_directories(EtcLib PUBLIC Etc EtcCodec) |
| 18 |
|
| 19 |
The above line exposes the public header to downstream projects; it's the "Modern CMake" |
| 20 |
alternative to the existing lines: |
| 21 |
|
| 22 |
include_directories(./Etc) |
| 23 |
include_directories(./EtcCodec) |
| 24 |
|
| 25 |
See: |
| 26 |
|
| 27 |
https://cliutils.gitlab.io/modern-cmake/chapters/intro/dodonot.html |