niotso/Libraries/FileHandler/iff/CMakeLists.txt
Fatbag 55659f43b5 * Libraries are now being compiled only as static or as shared, not both, quickening the compile process.
* Implemented the rewrite of the iff library, submitted by Propeng. The linked list has been completely replaced with vectors or normal arrays.
* Started work on the cur and tga parsers
2012-04-29 00:44:41 -05:00

26 lines
No EOL
560 B
CMake

cmake_minimum_required(VERSION 2.6)
project(iff)
set(IFF_SOURCES
iff.c
bcon.c
rsmp.c
str.c
trcn.c
)
add_library(iff_static STATIC ${IFF_SOURCES})
set_target_properties(iff_static PROPERTIES
OUTPUT_NAME "iff"
PREFIX ""
CLEAN_DIRECT_OUTPUT 1)
#### Shared library (uncomment to build)
#add_library(iff_shared SHARED ${IFF_SOURCES})
#set_target_properties(libiff_shared PROPERTIES
# OUTPUT_NAME "iff"
# PREFIX ""
# CLEAN_DIRECT_OUTPUT 1)
add_executable(iffexport iffexport.c)
target_link_libraries(iffexport iff_static)