mirror of
https://github.com/YACReader/yacreader
synced 2025-06-03 09:08:20 -04:00
30 lines
645 B
CMake
30 lines
645 B
CMake
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)
|