https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
11 lines
233 B
CMake
11 lines
233 B
CMake
cmake_minimum_required(VERSION 2.6)
|
|
|
|
project(ilbc)
|
|
|
|
file(GLOB ilbc_SRCS *.c)
|
|
file(GLOB ilbc_HDRS *.h)
|
|
|
|
add_library(ilbc SHARED ${ilbc_SRCS})
|
|
|
|
install(TARGETS ilbc DESTINATION lib)
|
|
install(FILES ${ilbc_HDRS} DESTINATION include/ilbc)
|