2012-03-04 13:28:34 -06:00
|
|
|
cmake_minimum_required(VERSION 2.6)
|
|
|
|
project(iff)
|
|
|
|
|
|
|
|
set(IFF_SOURCES
|
2012-06-15 20:45:11 -05:00
|
|
|
bhav.c
|
2012-05-21 23:27:44 -05:00
|
|
|
cats.c
|
2012-03-04 13:28:34 -06:00
|
|
|
iff.c
|
2012-04-29 00:44:41 -05:00
|
|
|
bcon.c
|
2012-06-15 10:18:12 -05:00
|
|
|
dgrp.c
|
2012-05-24 01:53:56 -05:00
|
|
|
fcns.c
|
|
|
|
glob.c
|
2012-06-15 10:18:12 -05:00
|
|
|
objf.c
|
2012-05-25 15:48:09 -05:00
|
|
|
palt.c
|
2012-04-29 00:44:41 -05:00
|
|
|
rsmp.c
|
2012-05-28 23:37:38 -05:00
|
|
|
spr.c
|
2012-06-15 10:18:12 -05:00
|
|
|
spr2.c
|
2012-04-29 00:44:41 -05:00
|
|
|
str.c
|
2012-05-21 23:27:44 -05:00
|
|
|
string.c
|
2012-05-24 01:53:56 -05:00
|
|
|
tmpl.c
|
2012-04-29 00:44:41 -05:00
|
|
|
trcn.c
|
2012-03-04 13:28:34 -06:00
|
|
|
)
|
|
|
|
|
2012-04-29 00:44:41 -05:00
|
|
|
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})
|
2012-05-21 23:27:44 -05:00
|
|
|
#set_target_properties(iff_shared PROPERTIES
|
2012-04-29 00:44:41 -05:00
|
|
|
# OUTPUT_NAME "iff"
|
|
|
|
# PREFIX ""
|
|
|
|
# CLEAN_DIRECT_OUTPUT 1)
|
|
|
|
|
|
|
|
add_executable(iffexport iffexport.c)
|
|
|
|
target_link_libraries(iffexport iff_static)
|