38 lines
726 B
CMake
38 lines
726 B
CMake
# Copyright (c) 2021 Dominic Msters
|
|
#
|
|
# This software is released under the MIT License.
|
|
# https://opensource.org/licenses/MIT
|
|
|
|
# Texture Build Tool
|
|
project(texturegen VERSION 1.0)
|
|
add_executable(texturegen)
|
|
|
|
target_sources(texturegen
|
|
PRIVATE
|
|
${DAWN_SHARED_SOURCES}
|
|
${DAWN_TOOL_SOURCES}
|
|
TextureGen.cpp
|
|
../../util/image.cpp
|
|
)
|
|
|
|
target_include_directories(texturegen
|
|
PUBLIC
|
|
${DAWN_SHARED_INCLUDES}
|
|
${DAWN_TOOL_INCLUDES}
|
|
${CMAKE_CURRENT_LIST_DIR}
|
|
)
|
|
|
|
# Definitions
|
|
target_compile_definitions(texturegen
|
|
PUBLIC
|
|
${DAWN_SHARED_DEFINITIONS}
|
|
DAWN_TOOL_INSTANCE=TextureGen
|
|
DAWN_TOOL_HEADER="TextureGen.hpp"
|
|
)
|
|
|
|
|
|
target_link_libraries(texturegen
|
|
PUBLIC
|
|
${DAWN_BUILD_HOST_LIBS}
|
|
stb
|
|
) |