Fix Linux build of etc2comp.

This commit is contained in:
Philip Rideout
2018-10-02 11:34:23 -07:00
parent 70a4c4f887
commit 8e9ef497f6
2 changed files with 9 additions and 11 deletions

View File

@@ -16,14 +16,4 @@ cmake_minimum_required(VERSION 2.8.9)
project(EtcTest)
set (CMAKE_CXX_STANDARD 11)
IF (APPLE)
set (CMAKE_CXX_FLAGS "-I/usr/include/i386-linux-gnu/c++/4.8 -I/usr/include/c++/4.8 -std=c++11 -g3 -Wall -O3")
ELSE ()
IF (WIN32)
set (CMAKE_CXX_FLAGS "-I/usr/include/i386-linux-gnu/c++/4.8 -I/usr/include/c++/4.8 -W4 /EHsc")
ELSE()
set (CMAKE_CXX_FLAGS "-I/usr/include/i386-linux-gnu/c++/4.8 -I/usr/include/c++/4.8 -std=c++11 -pthread -g3 -Wall -O2")
ENDIF()
ENDIF ()
ADD_SUBDIRECTORY(EtcLib)
ADD_SUBDIRECTORY(EtcTool)

View File

@@ -1,10 +1,18 @@
This folder was created as follows:
(1)
curl -L -O https://github.com/google/etc2comp/archive/9cd0f9c.zip
unzip 9cd0f9c.zip
mv etc2comp-* etc2comp
Then, add this line to EtcLib/CMakeLists.txt:
(2)
Remove the outer IF block and the EtcTool line from CMakeLists.txt
(3)
Add this line to EtcLib/CMakeLists.txt:
target_include_directories(EtcLib PUBLIC Etc EtcCodec)