CMakeLists.txt 891 Bytes
Newer Older
1
SET(libaec_SRCS encode.c encode_accessors.c decode.c)
Mathis Rosenhauer's avatar
Mathis Rosenhauer committed
2
ADD_LIBRARY(aec ${LIB_TYPE} ${libaec_SRCS})
3
SET_TARGET_PROPERTIES(aec PROPERTIES
Mathis Rosenhauer's avatar
Mathis Rosenhauer committed
4
5
6
  VERSION 0
  SOVERSION 0.0
  )
Mathis Rosenhauer's avatar
Mathis Rosenhauer committed
7
ADD_LIBRARY(sz ${LIB_TYPE} sz_compat.c)
8
SET_TARGET_PROPERTIES(sz PROPERTIES
Mathis Rosenhauer's avatar
Mathis Rosenhauer committed
9
10
11
  VERSION 0
  SOVERSION 0.0
  )
12

Mathis Rosenhauer's avatar
Mathis Rosenhauer committed
13
TARGET_LINK_LIBRARIES(sz aec)
14
15
16
17
IF(WIN32 AND BUILD_SHARED_LIBS)
  SET_TARGET_PROPERTIES (aec PROPERTIES DEFINE_SYMBOL "AECDLL_EXPORTS")
  SET_TARGET_PROPERTIES (sz PROPERTIES DEFINE_SYMBOL "AECDLL_EXPORTS")
ENDIF(WIN32 AND BUILD_SHARED_LIBS)
18

19
20
21
ADD_EXECUTABLE(aec_client aec.c)
SET_TARGET_PROPERTIES(aec_client PROPERTIES OUTPUT_NAME "aec")
TARGET_LINK_LIBRARIES(aec_client aec)
Mathis Rosenhauer's avatar
Mathis Rosenhauer committed
22

23
24
25
IF(UNIX)
  ADD_EXECUTABLE(utime EXCLUDE_FROM_ALL utime.c)
ENDIF(UNIX)
Mathis Rosenhauer's avatar
Mathis Rosenhauer committed
26

27
INSTALL(FILES libaec.h szlib.h DESTINATION include)
Mathis Rosenhauer's avatar
Mathis Rosenhauer committed
28
INSTALL(TARGETS aec sz aec_client
Mathis Rosenhauer's avatar
Mathis Rosenhauer committed
29
30
31
32
  RUNTIME DESTINATION bin
  LIBRARY DESTINATION lib
  ARCHIVE DESTINATION lib
  )