-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
51 lines (43 loc) · 1.9 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#-------------------------------------------------------------------------------
# CMake Setups
#-------------------------------------------------------------------------------
CMAKE_MINIMUM_REQUIRED (VERSION 3.15)
SET(CMAKE_VERBOSE_MAKEFILE ON)
SET(CMAKE_COLOR_MAKEFILE ON)
SET(CMAKE_ERROR_DEPRECATED ON)
SET(CMAKE_EXPORT_COMPILE_COMMANDS ON)
#-------------------------------------------------------------------------------
# Project Setups
#-------------------------------------------------------------------------------
PROJECT (uva-online-judge-solutions)
SET(PROJECT_DESCRIPTION "My UVa online judge solutions http://onlinejudge.org/")
ENABLE_LANGUAGE(C CXX)
ENABLE_TESTING()
#-------------------------------------------------------------------------------
# Compoler Options
#-------------------------------------------------------------------------------
# we use C99 in this project
SET(CMAKE_C_STANDARD 99)
SET(CMAKE_C_STANDARD_REQUIRED ON)
# we use C++11 in this project
SET(CMAKE_CXX_STANDARD 11)
SET(CMAKE_CXX_STANDARD_REQUIRED ON)
#-------------------------------------------------------------------------------
# CMake Modules
#-------------------------------------------------------------------------------
INCLUDE(FeatureSummary)
INCLUDE(FindPkgConfig)
# Detect avaliable options directly
INCLUDE(options.cmake)
#-------------------------------------------------------------------------------
# Sub Projects
#-------------------------------------------------------------------------------
ADD_SUBDIRECTORY(volume001)
ADD_SUBDIRECTORY(volume002)
ADD_SUBDIRECTORY(volume005)
ADD_SUBDIRECTORY(volume006)
ADD_SUBDIRECTORY(ContestVolumes)
#-------------------------------------------------------------------------------
# Show Project Summary Information
#-------------------------------------------------------------------------------
FEATURE_SUMMARY(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)