Home | History | Annotate | Download | only in qphelper
      1 # CMakeFile for qphelper library.
      2 
      3 # PNG support enabled by default.
      4 add_definitions(-DQP_SUPPORT_PNG)
      5 
      6 set(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 
     20 set(QPHELPER_LIBS
     21 	debase
     22 	depool
     23 	dethread
     24 	deutil
     25 	${PNG_LIBRARY}
     26 	)
     27 
     28 if (DE_OS_IS_UNIX)
     29 	# For vsnprintf()
     30 	add_definitions(-D_XOPEN_SOURCE=600)
     31 endif ()
     32 
     33 if (DE_OS_IS_WIN32 AND DE_COMPILER_IS_MSC)
     34 	set(QPHELPER_LIBS ${QPHELPER_LIBS} DbgHelp)
     35 endif ()
     36 
     37 add_library(qphelper STATIC ${QPHELPER_SRCS})
     38 target_link_libraries(qphelper ${QPHELPER_LIBS})
     39