2017-11-11 04:29:32 -05:00
|
|
|
project(logging)
|
|
|
|
|
2018-11-24 15:21:04 -05:00
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
|
|
|
|
2017-11-11 04:29:32 -05:00
|
|
|
set(logging_SOURCES
|
|
|
|
dualfilelogger.cpp
|
2017-11-11 17:44:05 -05:00
|
|
|
loggerwithfile.cpp
|
2017-11-11 04:29:32 -05:00
|
|
|
filelogger.cpp
|
|
|
|
logger.cpp
|
|
|
|
logmessage.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
set(httpserver_HEADERS
|
|
|
|
dualfilelogger.h
|
2017-11-11 17:44:05 -05:00
|
|
|
loggerwithfile.h
|
2017-11-11 04:29:32 -05:00
|
|
|
filelogger.h
|
|
|
|
logger.h
|
|
|
|
logmessage.h
|
|
|
|
logglobal.h
|
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
.
|
2018-03-09 07:48:14 -05:00
|
|
|
${CMAKE_SOURCE_DIR}/exports
|
2017-11-11 04:29:32 -05:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
)
|
|
|
|
|
|
|
|
#include(${QT_USE_FILE})
|
|
|
|
add_definitions(${QT_DEFINITIONS})
|
|
|
|
add_definitions(-DQT_SHARED)
|
|
|
|
|
|
|
|
add_library(logging SHARED
|
|
|
|
${logging_SOURCES}
|
|
|
|
${logging_HEADERS_MOC}
|
|
|
|
)
|
|
|
|
|
2018-12-01 21:06:04 -05:00
|
|
|
set_target_properties(logging PROPERTIES DEFINE_SYMBOL "logging_EXPORTS")
|
|
|
|
|
2017-11-11 04:29:32 -05:00
|
|
|
target_link_libraries(logging
|
|
|
|
${QT_LIBRARIES}
|
|
|
|
)
|
|
|
|
|
2018-06-12 18:20:51 -04:00
|
|
|
target_link_libraries(logging Qt5::Core Qt5::Network)
|
2017-11-11 04:29:32 -05:00
|
|
|
|
|
|
|
install(TARGETS logging DESTINATION lib)
|