setup electron app with boilerplate
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
|
||||
# Test executable for AuthManager
|
||||
qt_add_executable(testauthmanager
|
||||
# Test files
|
||||
testauthmanager.cpp
|
||||
testauthmanager.h
|
||||
|
||||
# Source files needed for testing
|
||||
../src/authmanager.cpp
|
||||
../src/authmanager.h
|
||||
../src/networkmanager.cpp
|
||||
../src/networkmanager.h
|
||||
)
|
||||
|
||||
# Link Qt modules
|
||||
target_link_libraries(testauthmanager
|
||||
PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Network
|
||||
Qt6::Test
|
||||
)
|
||||
|
||||
# Include src directory for headers
|
||||
target_include_directories(testauthmanager PRIVATE ../src)
|
||||
|
||||
# Enable automoc for Q_OBJECT processing
|
||||
set_target_properties(testauthmanager PROPERTIES
|
||||
AUTOMOC ON
|
||||
)
|
||||
|
||||
# Register with CTest
|
||||
add_test(NAME testauthmanager COMMAND testauthmanager)
|
||||
Reference in New Issue
Block a user