]> git.ipfire.org Git - thirdparty/zlib-ng.git/commit
Add a CMake macro for simple test executables
authorIlya Leoshkevich <iii@linux.ibm.com>
Thu, 18 Mar 2021 13:08:20 +0000 (14:08 +0100)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Thu, 18 Mar 2021 21:51:03 +0000 (22:51 +0100)
commit9b2baa8217c31e869c0ba53bbb458cd3ef040d00
treedb0eb8f554afb0f8d22a37eff71c93f6418d9d7c
parent9f7b4b1e10b94b4048ccfef0e7e67b11c9245b92
Add a CMake macro for simple test executables

6 tests use the same pattern: build a binary linked with zlib-ng and
run it. At the moment this requires 5 near-identical lines of CMake
code, leading to proliferation of copy-paste. Introduce a macro to get
rid of it.
CMakeLists.txt