CMakeLists.txt revision 3c827367444ee418f129b2c238299f49d3264554
1# CMakeFile for qphelper library.
2
3# PNG support enabled by default.
4add_definitions(-DQP_SUPPORT_PNG)
5
6set(QPHELPER_SRCS
7	qpCrashHandler.c
8	qpCrashHandler.h
9	qpDebugOut.c
10	qpDebugOut.h
11	qpInfo.c
12	qpInfo.h
13	qpTestLog.c
14	qpTestLog.h
15	qpWatchDog.c
16	qpWatchDog.h
17	qpXmlWriter.c
18	qpXmlWriter.h)
19
20set(QPHELPER_LIBS
21	debase
22	depool
23	dethread
24	deutil
25	libpng
26	)
27
28if (DE_OS_IS_UNIX)
29	# For vsnprintf()
30	add_definitions(-D_XOPEN_SOURCE=600)
31endif ()
32
33if (DE_OS_IS_WIN32 AND DE_COMPILER_IS_MSC)
34	set(QPHELPER_LIBS ${QPHELPER_LIBS} DbgHelp)
35endif ()
36
37add_library(qphelper STATIC ${QPHELPER_SRCS})
38target_link_libraries(qphelper ${QPHELPER_LIBS})
39