-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
31 lines (22 loc) · 883 Bytes
/
CMakeLists.txt
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
28
29
30
31
# required for hassle-free C11/C++11 support
cmake_minimum_required(VERSION 3.1)
project(appimage-type3-runtime C CXX)
# we use C11 for the runtime implementation
set(CMAKE_C_STANRARD 11)
set(CMAKE_C_STANRARD_REQUIRED ON)
# we use C++11 for the tests
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
# include external dependencies configuration
include(cmake/tools.cmake)
include(cmake/dependencies.cmake)
# set up reproducible builds in release mode
include(cmake/reproducible_builds.cmake)
# make the compiler complain about every warning
message(STATUS "Setting up paranoia mode")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Werror -Wshadow -Wdouble-promotion -Wconversion")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Werror -Wshadow -Wdouble-promotion -Wconversion")
add_subdirectory(lib)
add_subdirectory(src)
enable_testing()
add_subdirectory(tests)