cpp-utilities/c++utilities.pro

92 lines
2.5 KiB
Prolog
Raw Normal View History

2015-12-08 08:32:57 +01:00
# meta data
2015-04-22 18:36:40 +02:00
projectname = c++utilities
2015-09-22 01:48:37 +02:00
appname = "C++ Utilities"
appauthor = Martchus
QMAKE_TARGET_DESCRIPTION = "Common C++ classes and routines used by my applications such as argument parser, IO and conversion utilities."
2015-12-27 18:16:33 +01:00
VERSION = 3.1.0
2015-04-22 18:36:40 +02:00
# include ../../common.pri when building as part of a subdirs project; otherwise include general.pri
!include(../../common.pri) {
!include(./general.pri) {
error("Couldn't find the common.pri or the general.pri file!")
}
}
2015-12-08 08:32:57 +01:00
# basic configuration: shared library, no Qt
2015-09-22 01:48:37 +02:00
TEMPLATE = lib
2015-04-22 18:36:40 +02:00
CONFIG -= qt
2015-08-27 21:36:07 +02:00
CONFIG += shared
2015-04-22 18:36:40 +02:00
2015-12-08 08:32:57 +01:00
# add project files
2015-04-22 18:36:40 +02:00
HEADERS += \
application/argumentparser.h \
2015-12-08 08:32:57 +01:00
application/commandlineutils.h \
2015-04-22 18:36:40 +02:00
application/failure.h \
2015-12-08 08:32:57 +01:00
application/fakeqtconfigarguments.h \
application/global.h \
2015-04-22 18:36:40 +02:00
chrono/datetime.h \
chrono/period.h \
2015-12-08 08:32:57 +01:00
chrono/timespan.h \
conversion/binaryconversion.h \
2015-04-22 18:36:40 +02:00
conversion/binaryconversionprivate.h \
2015-12-08 08:32:57 +01:00
conversion/conversionexception.h \
conversion/stringconversion.h \
conversion/types.h \
conversion/widen.h \
2015-04-22 18:36:40 +02:00
io/ansiescapecodes.h \
2015-12-08 08:32:57 +01:00
io/binaryreader.h \
io/binarywriter.h \
2015-06-24 00:44:16 +02:00
io/bitreader.h \
2015-12-08 08:32:57 +01:00
io/copy.h \
io/inifile.h \
io/path.h \
math/math.h \
misc/memory.h \
misc/random.h
SOURCES += \
application/argumentparser.cpp \
application/commandlineutils.cpp \
application/failure.cpp \
application/fakeqtconfigarguments.cpp \
chrono/datetime.cpp \
chrono/period.cpp \
chrono/timespan.cpp \
conversion/binaryconversion.cpp \
conversion/conversionexception.cpp \
conversion/stringconversion.cpp \
io/ansiescapecodes.cpp \
io/binaryreader.cpp \
io/binarywriter.cpp \
io/bitreader.cpp \
io/inifile.cpp \
io/path.cpp \
math/math.cpp \
misc/random.cpp
2015-04-22 18:36:40 +02:00
OTHER_FILES += \
2015-06-08 22:09:17 +02:00
README.md \
2015-12-08 08:32:57 +01:00
LICENSE \
CMakeLists.txt \
resources/config.h.in \
resources/windows.rc.in
2015-04-22 18:36:40 +02:00
# installs
2015-07-18 01:10:18 +02:00
mingw-w64-install {
target.path = $$(INSTALL_ROOT)
target.extra = install -m755 -D $${OUT_PWD}/release/lib$(TARGET).a $$(INSTALL_ROOT)/lib/lib$(TARGET).a
INSTALLS += target
dlltarget.path = $$(INSTALL_ROOT)
dlltarget.extra = install -m755 -D $${OUT_PWD}/release/$(TARGET) $$(INSTALL_ROOT)/bin/$(TARGET)
INSTALLS += dlltarget
} else {
target.path = $$(INSTALL_ROOT)/lib
INSTALLS += target
}
2015-04-22 18:36:40 +02:00
for(dir, $$list(application io conversion chrono math misc)) {
eval(inc_$${dir} = $${dir})
inc_$${dir}.path = $$(INSTALL_ROOT)/include/$$projectname/$${dir}
inc_$${dir}.files = $${dir}/*.h
INSTALLS += inc_$${dir}
}