blob: b654ea25f50cbb551e616796ab0d348537c4f043 (
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
|
cmake_minimum_required(VERSION 2.8)
project(dice)
#/net/rnd/src/qt/qt-everywhere-enterprise-src-5.3.0/linux-x86_64-gcc-4.7.2/lib/cmake
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}
#${Qt5Widgets_EXECUTABLE_COMPILE_FLAGS}")
# 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)
set(EXECUTABLE_OUTPUT_PATH bin/)
include_directories(${Qt5Core_INCLUDES})
add_definitions(${Qt5Core_DEFINITIONS})
set(MODE "cli")
#file (
# GLOB_RECURSE
# source_files
# *.cpp
# result/*
# node/*
#)
add_executable(
dice
diceparser.cpp
range.cpp
booleancondition.cpp
validator.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/explosedicenode.cpp
node/helpnode.cpp
node/jumpbackwardnode.cpp
node/keepdiceexecnode.cpp
node/listaliasnode.cpp
node/listsetrollnode.cpp
node/numbernode.cpp
node/parenthesesnode.cpp
node/rerolldicenode.cpp
node/scalaroperatornode.cpp
node/sortresult.cpp
node/startingnode.cpp
cli/main.cpp
)
#add_executable(dice cli/main.cpp)
target_link_libraries(dice ${Qt5Core_LIBRARIES})
#qt5_use_modules()
|