aboutsummaryrefslogtreecommitdiff
path: root/debian/tinyalsa.install
diff options
context:
space:
mode:
authorEthan Sommer <e5ten.arch@gmail.com>2020-05-22 20:31:20 -0400
committerEthan Sommer <e5ten.arch@gmail.com>2020-06-04 22:45:03 -0400
commitac41ba57674e821d11184042a74b226f5b69cb4c (patch)
tree9dc757645c0a1d1eae6fd23ab93daa1ebe51029d /debian/tinyalsa.install
parent9c9b2a51fb0ec23b7e648fb942c133f0c52cbc1c (diff)
Various cmake improvements
Use scripts/version.sh, and set version in project() using its output. Instead of using a variable to store the definition of TINYALSA_USES_PLUGINS, and adding it as a compile option, use a generator expression to define it in target_compile_definitions when the option is enabled. Set BUILD_SHARED_LIBS to on by default. Add options to disable examples and utils. Instead of using SRCS and HDRS variables, set PUBLIC_HEADER property on tinyalsa to install the headers along with the target. Set library version, so the shared library will have version suffixes. Check that C warning flags are supported instead of adding them unconditionally. Use ${CMAKE_DL_LIBS} instead of hardcoding "dl", and add it to tinyalsa's link interface and link depends, instead of linking it in the examples and utils. Add the "include" directory as a PUBLIC include directory to tinyalsa, instead of making it PRIVATE and adding it to examples and utils as well, because anything linking the tinyalsa target will need to include "include". Instead of using macros for building examples and utils, use a for loop. Include cmake's GNUInstallDirs to automatically correctly populate installation dir variables, instead of doing it manually.
Diffstat (limited to 'debian/tinyalsa.install')
0 files changed, 0 insertions, 0 deletions