CMakeLists.txt 654 Bytes
Newer Older
Mathis Rosenhauer's avatar
Mathis Rosenhauer committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
set(libaec_SRCS encode.c encode_accessors.c decode.c)
add_library(aec SHARED ${libaec_SRCS})
set_target_properties(aec PROPERTIES
  VERSION 0
  SOVERSION 0.0
  )
add_library(sz SHARED sz_compat.c)
set_target_properties(sz PROPERTIES
  VERSION 0
  SOVERSION 0.0
  )
target_link_libraries(sz aec)

add_executable(aec_client aec.c)
set_target_properties(aec_client PROPERTIES OUTPUT_NAME "aec")
target_link_libraries(aec_client aec)

install(FILES libaec.h szlib.h DESTINATION include)
install(TARGETS aec sz
  RUNTIME DESTINATION bin
  LIBRARY DESTINATION lib
  ARCHIVE DESTINATION lib
  )
install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/aec DESTINATION bin)