ci: add GitHub actions for Linux and Windows builds

We build a "static" binary for Windows now to avoid distributing the
dependencies as DLLs.
This commit is contained in:
Matthias Schiffer 2021-12-19 23:12:25 +01:00
parent 37340926f4
commit 00b93c507d
Signed by: neocturne
GPG key ID: 16EF3F64CB201D9C
5 changed files with 151 additions and 0 deletions

View file

@ -0,0 +1,5 @@
# Hack: The toolchain file is evaluated too early to set the library suffixes, so we use a wrapper
# around FindPkgConfig set it right before we search for libraries.
set(CMAKE_FIND_LIBRARY_SUFFIXES ".a")
include(${CMAKE_ROOT}/Modules/FindPkgConfig.cmake)