# common settings, defines the output directory and the runtime library search path
include( ${CMAKE_CURRENT_LIST_DIR}/../libs/build.cmake )

file( GLOB SRCS src/*.cpp )
file( GLOB MOC_HDRS src/*.h )

add_executable(TestApp
	${SRCS}
	${MOC_HDRS}
)

# Link against the shared library. Unlike in the qmake project no include path
# and no library search path need to be set here - both are propagated by the
# TestLib target, which also makes CMake build the library first.
target_link_libraries(TestApp PRIVATE
	TestLib
	Qt6::Widgets
)
