aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/irc/CMakeLists.txt
blob: 990e0eb9ab5ec8da3954779b3defe93abb5825c2 (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
cmake_minimum_required(VERSION 2.8)

SET(CMAKE_AUTOUIC ON)

project(irc)
# Find includes in corresponding build directories
set(CMAKE_INCLUDE_CURRENT_DIR ON)
# Instruct CMake to run moc automatically when needed.
set(CMAKE_AUTOMOC ON)

# Find the QtWidgets library
find_package(Qt5Core)
#fsind_package(Qt5Gui)
#find_package(Qt5Widgets)
find_package(Qt5Network)

#SET(mainwindow_SOURCES mainwindow.cpp)
#SET(mainwindow_HEADERS mainwindow.h)
#SET(mainwindow_FORMS mainwindow.ui)

set(EXECUTABLE_OUTPUT_PATH bin/)


include_directories(${Qt5Core_INCLUDES} ${Qt5Network_INCLUDES} ../)
add_definitions(${Qt5Core_DEFINITIONS} ${Qt5Network_DEFINITIONS})


#qt5_wrap_ui(UI_HEADERS mainwindow.ui)
set(MODE "cli")


ADD_DEFINITIONS(
    -std=c++11 # Or -std=c++0x
    # Other flags
)

add_executable(
    irc
    ../diceparser.cpp
    ../range.cpp
    ../highlightdice.cpp
    ../booleancondition.cpp
    ../validator.cpp
    ../compositevalidator.cpp
    ../operationcondition.cpp
    ../die.cpp
    ../parsingtoolbox.cpp
    ../dicealias.cpp
    ../result/result.cpp
    ../result/scalarresult.cpp
    ../result/stringresult.cpp
    ../result/diceresult.cpp
    ../node/countexecutenode.cpp
    ../node/dicerollernode.cpp
    ../node/executionnode.cpp
    ../node/explodedicenode.cpp
    ../node/helpnode.cpp
    ../node/mergenode.cpp
    ../node/jumpbackwardnode.cpp
    ../node/keepdiceexecnode.cpp
    ../node/listaliasnode.cpp
    ../node/listsetrollnode.cpp
    ../node/numbernode.cpp
    ../node/parenthesesnode.cpp
    ../node/paintnode.cpp
    ../node/rerolldicenode.cpp
    ../node/scalaroperatornode.cpp
    ../node/sortresult.cpp
    ../node/startingnode.cpp
    ../node/ifnode.cpp
    ../node/stringnode.cpp
    ../node/filternode.cpp
    ../node/splitnode.cpp
    ../node/groupnode.cpp
    ../node/uniquenode.cpp
    ../node/bind.cpp
    botircdiceparser.cpp
    ../node/variablenode.cpp
    main.cpp)


target_link_libraries(irc ${Qt5Core_LIBRARIES} ${Qt5Network_LIBRARIES})
INSTALL_TARGETS(/bin irc)
#qt5_use_modules()