reone/external/libtga/CMakeLists.txt
2021-01-13 20:30:48 +07:00

29 lines
991 B
CMake

# Copyright (c) 2020-2021 The reone project contributors
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
cmake_minimum_required(VERSION 3.10)
set(LIBTGA_HEADERS
tga.h
tgaconfig.h)
set(LIBTGA_SOURCES
tga.c
tgaread.c
tgawrite.c)
add_library(libtga STATIC ${LIBTGA_HEADERS} ${LIBTGA_SOURCES})
set_target_properties(libtga PROPERTIES ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)