set(KIT ${PROJECT_NAME})
set(LIBRARY_NAME ${PROJECT_NAME})

create_test_sourcelist(Tests ${KIT}CppTests.cpp
  ctkCmdLineModuleFrontendQtGuiTest.cpp
  ctkCmdLineModuleQtXslTransformTest.cpp
  )

set(TestsToRun ${Tests})
remove(TestsToRun ${KIT}CppTests.cpp)

set(Tests_SRCS ${Tests_SRCS}
)

set(Tests_MOC_SRCS ${Tests_MOC_SRCS}
)

set(Tests_RESOURCES
  ctkCmdLineModuleFrontendQtGuiTestResources.qrc
)

include_directories(
  ${CMAKE_SOURCE_DIR}/Libs/Testing
  ${CMAKE_CURRENT_BINARY_DIR}
  )

ctk_add_executable_utf8(${KIT}CppTests ${Tests} ${Tests_SRCS} ${Tests_RESOURCES})
target_link_libraries(${KIT}CppTests ${LIBRARY_NAME} ${CTK_BASE_LIBRARIES})

# Configure CMake Qt automatic code generation
set_target_properties(${KIT}CppTests PROPERTIES
  AUTOMOC ON
  AUTORCC ON
  )

target_link_libraries(${KIT}CppTests Qt${CTK_QT_VERSION}::Test)

#
# Add Tests
#

SIMPLE_TEST(ctkCmdLineModuleQtXslTransformTest)
SIMPLE_TEST(ctkCmdLineModuleFrontendQtGuiTest)
