-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
41 lines (32 loc) · 1.01 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
CMAKE_MINIMUM_REQUIRED(VERSION 3.15)
PROJECT(Pocon)
SET(CMAKE_CXX_STANDARD 20)
SET(CMAKE_CXX_STANDARD_REQUIRED ON)
# Support to Coverage Metrics {gcov} only in
# mode of Debug configuration
IF (${CMAKE_BUILD_TYPE} STREQUAL "Debug")
MESSAGE("Support to Coverage - ON")
SET(CMAKE_CXX_FLAGS "--coverage")
ENDIF ()
INCLUDE_DIRECTORIES(Include)
# Find the librarys here
LINK_DIRECTORIES(${CMAKE_SOURCE_DIR}/Library)
ADD_EXECUTABLE(Pocon Main.cpp
Source/Readable.cpp
Source/Readable.hpp
Source/Pocon.cpp
Source/Pocon.hpp
Source/IInterfaceGraphic.hpp
Source/CommandLine.cpp
Source/CommandLine.hpp
Source/Exception.hpp
Source/FileNotFoundException.hpp
Source/Keyboard/Keyboard.cpp
Source/Keyboard/Keyboard.hpp
Source/Keyboard/KeyCode.hpp
Source/Xml.cpp
Source/Xml.hpp
Source/Writable.cpp
Source/Writable.hpp)
# Load and link the library Ana for manage XML files
TARGET_LINK_LIBRARIES(Pocon Ana)