11 lines
647 B
CMake
11 lines
647 B
CMake
qt5_wrap_cpp(test-translationhandler_SRC testtranslationhandler.h ${CMAKE_SOURCE_DIR}/gui/translationhandler.h)
|
|
add_custom_target(build-translationhandler-deps SOURCES ${test-translationhandler_SRC})
|
|
add_dependencies(gui-build-deps build-translationhandler-deps)
|
|
add_executable(test-translationhandler
|
|
${test-translationhandler_SRC}
|
|
testtranslationhandler.cpp
|
|
${CMAKE_SOURCE_DIR}/gui/common.cpp
|
|
${CMAKE_SOURCE_DIR}/gui/translationhandler.cpp
|
|
)
|
|
target_include_directories(test-translationhandler PRIVATE ${CMAKE_SOURCE_DIR}/gui)
|
|
target_link_libraries(test-translationhandler Qt5::Core Qt5::Widgets Qt5::Test) |