forked from Perfare/AssetStudio
-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Texture2DDecoderNative - Linux/macOS compatibility fix
+ CMakeLists.txt
- Loading branch information
Showing
3 changed files
with
78 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# Set the minimum version of CMake that can be used | ||
cmake_minimum_required (VERSION 3.8) | ||
|
||
# Set the project name | ||
project("Texture2DDecoderNative") | ||
|
||
# Set the C++ standard to C++ 14 | ||
set(CMAKE_CXX_STANDARD 14) | ||
|
||
# Add definitions from the project file | ||
# 'Release|x64' | ||
# <PreprocessorDefinitions>_T2D_DLL;NDEBUG;TEXTURE2DDECODERNATIVE_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
add_compile_definitions(_T2D_DLL) | ||
add_compile_definitions(NDEBUG) | ||
add_compile_definitions(TEXTURE2DDECODERNATIVE_EXPORTS) | ||
|
||
# Add the given directories to those the compiler uses to search for include files | ||
include_directories(.) | ||
include_directories(crunch) | ||
include_directories(fp16) | ||
include_directories(unitycrunch) | ||
|
||
# Generate the shared library from the library sources | ||
add_library(Texture2DDecoderNative SHARED | ||
crunch/crn_decomp.h | ||
crunch/crnlib.h | ||
fp16/bitcasts.h | ||
fp16/fp16.h | ||
unitycrunch/crn_decomp.h | ||
unitycrunch/crn_defs.h | ||
unitycrunch/crnlib.h | ||
astc.cpp | ||
astc.h | ||
atc.cpp | ||
atc.h | ||
bcn.cpp | ||
bcn.h | ||
bool32_t.h | ||
color.h | ||
crunch.cpp | ||
crunch.h | ||
dllexport.h | ||
dllmain.cpp | ||
endianness.h | ||
etc.cpp | ||
etc.h | ||
fp16.h | ||
pvrtc.cpp | ||
pvrtc.h | ||
resource.h | ||
unitycrunch.cpp | ||
unitycrunch.h) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters