forked from grantrostig/cpp_by_example
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathcpp_module.pro
More file actions
77 lines (71 loc) · 2.13 KB
/
cpp_module.pro
File metadata and controls
77 lines (71 loc) · 2.13 KB
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
TEMPLATE = app
CONFIG += console
#TEMPLATE = lib
#CONFIG += staticlib
CONFIG -= app_bundle
CONFIG -= qt
#CONFIG += c++latest
#CONFIG += c++20
CONFIG += warn_on
CONFIG += thread
# ??CONFIG += QMAKE_CFLAGS_WARN_ON
# ??CONFIG += QMAKE_CXXFLAGS_WARN_ON
# // Compiler to use (comment out to use default one).
#QMAKE_CXX = clang++
QMAKE_CXXFLAGS += \
-std=gnu++23 \
-O0 \
-g3 \
#-ggdb \
#-ggdb3 \
-fconcepts \
-fmodules-ts \
#-pedantic \
#-pedantic-errors \
-Wall \ # https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html
-Wextra \
-Wdeprecated-declarations\
#-Weffc++ \
#-Wno-comment \
#-Wno-uninitialized \
#-Wno-reorder \
#-Wno-unused-parameter \
#-Wno-unused-variable \
# -std=c++17 \
# -std=c++1z \
# -std=gnu++17 \
# -std=gnu++1z \
# -std=c++2a \
# -std=gnu++2a \
# -std=c++20 \
# -std=gnu++20 \
# -std=c++2b \
# -std=gnu++2b \
# -DBOOST_LOG_DYN_LINK \ # on compile line not link line.
# -DBOOST_SYSTEM_NO_DEPRECATED \ # not sure what it does.
#QMAKE_LFLAGS += -static # actually makes a static object.
#CONFIG += static wrong? why?
LIBS += \
-lpthread \
-lrt \
-lstdc++_libbacktrace \
#-lboost_system \
#-lboost_coroutine \
#-lssl \ # missing this still: undefined reference to symbol 'd2i_PrivateKey_bio@@OPENSSL_1_1_0 related to: OPENSSL_API_COMPAT
#-lcrypto \ # seems to be needed with -lssl
#INCLUDEPATH += $$PWD/../lib_tty
#INCLUDEPATH += $$PWD/.
#DEPENDPATH += $$PWD/../lib_tty
#SUBDIRS +=
#if (!include(../../config.txt)) {
# error("Failed to open config.txt")
#}
#TARGET = eigen_playground
#DEFINES =
HEADERS += \
global_entities.h \
\# $$PWD/..h \ # probably wrong
my_module.hpp
SOURCES += \
main.cpp \
my_module.cpp