This repository has been archived on 2025-12-24. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
yachat/third-party/JsonQt/tests/CMakeLists.txt

45 lines
753 B
Text
Raw Permalink Normal View History

2025-12-25 01:37:49 +05:00
SET(
TESTS
JsonRpc
JsonRpcAdaptor
JsonToProperties
JsonToVariant
VariantToJson
)
##### Probably don't want to edit below this line #####
# Find Qt4
FIND_PACKAGE( Qt4 REQUIRED )
# Pick modules
SET( QT_DONT_USE_QTGUI TRUE )
SET( QT_USE_QTTEST TRUE )
# Use it
INCLUDE( ${QT_USE_FILE} )
# Include the library include directories, and the current build directory (moc)
INCLUDE_DIRECTORIES(
../lib
${CMAKE_CURRENT_BINARY_DIR}
)
# Build the tests
INCLUDE(AddFileDependencies)
FOREACH(test ${TESTS})
MESSAGE(STATUS "Building ${test}")
QT4_WRAP_CPP(MOC_SOURCE ${test}.cpp)
ADD_EXECUTABLE(
${test}
${test}.cpp
)
ADD_FILE_DEPENDENCIES(${test}.cpp ${MOC_SOURCE})
TARGET_LINK_LIBRARIES(
${test}
${QT_LIBRARIES}
JsonQt
)
ENDFOREACH()