mirror of
https://github.com/simtactics/mysimulation.git
synced 2025-03-24 02:09:14 +00:00
Support for SPR# and SPR2 was added to iff2html. *NOTE: The default exporter used is the PNG one, since web browsers don't like targa. However, since there is a bug in my PNG exporter, I would recommend that you use the targa exporter for a precise representation of the loaded sprite frame(s). Feel free to fix the PNG exporter, btw :)
47 lines
No EOL
1.3 KiB
CMake
47 lines
No EOL
1.3 KiB
CMake
cmake_minimum_required(VERSION 2.6)
|
|
project(FileHandler)
|
|
|
|
add_subdirectory(iff)
|
|
add_subdirectory(libexpat)
|
|
add_subdirectory(libfar)
|
|
add_subdirectory(libjpeg-turbo)
|
|
add_subdirectory(libmpg123)
|
|
add_subdirectory(libpng)
|
|
add_subdirectory(utk)
|
|
add_subdirectory(xa)
|
|
add_subdirectory(zlib)
|
|
|
|
set(FILEHANDLER_SERIES 0)
|
|
set(FILEHANDLER_MAJOR 0)
|
|
set(FILEHANDLER_MINOR 0)
|
|
|
|
set(FILEHANDLER_SOURCES
|
|
File.cpp
|
|
Image.cpp
|
|
cst/cst.c
|
|
iff/stbl.c
|
|
iff/bhav.c
|
|
iff/sprite.c
|
|
iff/chunks.c
|
|
iff/iff.c
|
|
)
|
|
|
|
include_directories(${CMAKE_SOURCE_DIR}/Libraries/FileHandler)
|
|
|
|
include_directories(${CMAKE_SOURCE_DIR}/Libraries/FileHandler/libpng)
|
|
|
|
add_library(FileHandler_static STATIC ${FILEHANDLER_SOURCES})
|
|
set_target_properties(FileHandler_static PROPERTIES
|
|
OUTPUT_NAME "FileHandler${FILEHANDLER_SERIES}"
|
|
PREFIX ""
|
|
CLEAN_DIRECT_OUTPUT 1)
|
|
|
|
add_library(FileHandler_shared SHARED ${FILEHANDLER_SOURCES})
|
|
set_target_properties(FileHandler_shared PROPERTIES
|
|
OUTPUT_NAME "FileHandler${FILEHANDLER_SERIES}"
|
|
VERSION ${FILEHANDLER_SERIES}${FILEHANDLER_MAJOR}.${FILEHANDLER_MINOR}.0
|
|
SOVERSION ${FILEHANDLER_SERIES}${FILEHANDLER_MAJOR}
|
|
PREFIX ""
|
|
IMPORT_PREFIX ""
|
|
CLEAN_DIRECT_OUTPUT 1)
|
|
target_link_libraries(FileHandler_shared kernel32 jpegturbo_static zlib_shared libpng_static) |