nvidia-texture-tools/extern/EtcLib/CMakeLists.txt
Stefan Brüns 7b4b7bb42e Build intermediate EtcLib always as STATIC
Depending on the BUILD_SHARED_LIBS variable EtcLib may be built as SHARED
if not set explicitly, like done for the other libraries in extern.

Signed-off-by: Stefan Brüns <stefan.bruens@rwth-aachen.de>
2018-02-02 19:45:18 +01:00

25 lines
879 B
CMake

# Copyright 2015 The Etc2Comp Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
project(EtcLib)
include_directories(./Etc)
include_directories(./EtcCodec)
file(GLOB SOURCES
${PROJECT_SOURCE_DIR}/Etc/*.h
${PROJECT_SOURCE_DIR}/EtcCodec/*.h
${PROJECT_SOURCE_DIR}/Etc/*.cpp
${PROJECT_SOURCE_DIR}/EtcCodec/*.cpp)
ADD_LIBRARY(EtcLib STATIC ${SOURCES})