CMakeLists.txt 839 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
IF(WIN32)
Mathis Rosenhauer's avatar
Mathis Rosenhauer committed
15 16
  SET_TARGET_PROPERTIES (aec PROPERTIES DEFINE_SYMBOL "DLL_EXPORT")
  SET_TARGET_PROPERTIES (sz PROPERTIES DEFINE_SYMBOL "DLL_EXPORT")
17 18
ENDIF(WIN32)

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
  )