mirror of
https://github.com/YACReader/yacreader
synced 2025-07-18 21:14:33 -04:00
Update QsLog to 2.1 snapshot 46b643d5bcbc
This commit is contained in:
29
third_party/QsLog/unittest/CMakeLists.txt
vendored
Normal file
29
third_party/QsLog/unittest/CMakeLists.txt
vendored
Normal file
@ -0,0 +1,29 @@
|
||||
set(PROJECTNAME QsLogUnitTest)
|
||||
project(${PROJECTNAME})
|
||||
|
||||
find_package(Qt5Test REQUIRED)
|
||||
|
||||
include_directories(${QsLogUnitTest_SOURCE_DIR} ${QsLog_SOURCE_DIR})
|
||||
|
||||
if(QS_LOG_IS_SHARED_LIBRARY)
|
||||
# Ugh, ugly hack
|
||||
add_definitions(-UQSLOG_IS_SHARED_LIBRARY)
|
||||
add_definitions(-DQSLOG_IS_SHARED_LIBRARY_IMPORT)
|
||||
endif()
|
||||
|
||||
set(HEADER_FILES
|
||||
TestLog.h
|
||||
QtTestUtil/QtTestUtil.h
|
||||
QtTestUtil/TestRegistration.h
|
||||
QtTestUtil/TestRegistry.h
|
||||
)
|
||||
|
||||
set(SOURCE_FILES
|
||||
TestLog.cpp
|
||||
QtTestUtil/SimpleChecker.cpp
|
||||
QtTestUtil/TestRegistry.cpp
|
||||
)
|
||||
|
||||
add_executable(${PROJECTNAME} ${SOURCE_FILES} ${HEADER_FILES})
|
||||
|
||||
target_link_libraries(${PROJECTNAME} QsLog Qt5::Core Qt5::Test)
|
Reference in New Issue
Block a user