blob: c2299614c0abd4a23ad6e2fffafad5fc1cc30eff (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
cmake_minimum_required(VERSION 3.10)
if(APPLE)
execute_process(COMMAND brew update --quiet)
execute_process(COMMAND brew install automake ninja)
if(TEST_DEPS)
execute_process(COMMAND brew install cpanminus)
endif()
else()
# Assuming ubuntu for now. May expand if required.
set(PACKAGES
autoconf
automake
build-essential
curl
gettext
libtool-bin
locales-all
ninja-build
pkg-config
unzip)
execute_process(COMMAND sudo apt-get update)
execute_process(COMMAND sudo apt-get install -y ${PACKAGES})
if(TEST_DEPS)
execute_process(COMMAND sudo apt-get install -y cpanminus)
endif()
endif()
|