2017-11-11 09:29:32 +00:00
|
|
|
project(logging)
|
|
|
|
|
|
|
|
set(logging_SOURCES
|
|
|
|
dualfilelogger.cpp
|
2017-11-11 22:44:05 +00:00
|
|
|
loggerwithfile.cpp
|
2017-11-11 09:29:32 +00:00
|
|
|
filelogger.cpp
|
|
|
|
logger.cpp
|
|
|
|
logmessage.cpp
|
|
|
|
)
|
|
|
|
|
2023-01-10 23:21:47 +00:00
|
|
|
set(logging_HEADERS
|
2017-11-11 09:29:32 +00:00
|
|
|
dualfilelogger.h
|
2017-11-11 22:44:05 +00:00
|
|
|
loggerwithfile.h
|
2017-11-11 09:29:32 +00:00
|
|
|
filelogger.h
|
|
|
|
logger.h
|
|
|
|
logmessage.h
|
|
|
|
logglobal.h
|
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(
|
2019-05-01 09:54:58 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/exports
|
2017-11-11 09:29:32 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
add_library(logging SHARED
|
2019-05-01 09:54:58 +00:00
|
|
|
${logging_SOURCES}
|
2017-11-11 09:29:32 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(logging
|
2022-11-17 14:34:54 +00:00
|
|
|
Qt::Core
|
|
|
|
Qt::Network
|
2017-11-11 09:29:32 +00:00
|
|
|
)
|
|
|
|
|
2019-05-01 09:54:58 +00:00
|
|
|
install(TARGETS logging DESTINATION ${INSTALL_LIB_DIR})
|