-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
36 lines (27 loc) · 1.21 KB
/
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
32
33
34
35
36
# - Main CMake buildscript for mpags-cipher
# Comments in a CMake Script are lines begining with a '#'
# - Set CMake requirements then declare project
cmake_minimum_required(VERSION 3.2)
project(MPAGSCipher VERSION 0.5.0)
# - When Makefiles are generated, output all command lines by default
# Do this to begin with so it's easy to see what compiler command/flags
# are used. This can also be done by removing the 'set' command and
# running make as 'make VERBOSE=1'.
set(CMAKE_VERBOSE_MAKEFILE ON)
# - Don't allow C++ Compiler Vendor Extensions
set(CMAKE_CXX_EXTENSIONS OFF)
# - Set C++ Standard directly to c++14
set(CMAKE_CXX_STANDARD 14)
# - Use our standard set of flags
set(CMAKE_CXX_FLAGS "-Wall -Wextra -Werror -Wfatal-errors -Wshadow -pedantic")
# - Add the MPAGSCipher subdirectory to the build
add_subdirectory(MPAGSCipher)
# - Add the Documentation subdirectory to the build
add_subdirectory(Documentation)
# - Enable testing and add the Testing subdirectory to the build
enable_testing()
add_subdirectory(Testing)
# - Declare the build of mpags-cipher main program and link it to
# the MPAGSCipher library
add_executable(mpags-cipher mpags-cipher.cpp)
target_link_libraries(mpags-cipher PRIVATE MPAGSCipher)