2020-02-17 10:57:41 +01:00
|
|
|
find_package( Qt5 ${QT_VERSION} CONFIG REQUIRED Core DBus Network )
|
2017-09-13 22:24:30 +02:00
|
|
|
find_package( Crypt REQUIRED )
|
2014-07-31 19:06:31 +02:00
|
|
|
|
2018-01-23 13:02:49 +01:00
|
|
|
# Add optional libraries here
|
|
|
|
set( USER_EXTRA_LIB )
|
|
|
|
|
|
|
|
find_package( LibPWQuality )
|
|
|
|
set_package_properties(
|
|
|
|
LibPWQuality PROPERTIES
|
|
|
|
PURPOSE "Extra checks of password quality"
|
|
|
|
)
|
|
|
|
|
|
|
|
if( LibPWQuality_FOUND )
|
|
|
|
list( APPEND USER_EXTRA_LIB ${LibPWQuality_LIBRARIES} )
|
|
|
|
include_directories( ${LibPWQuality_INCLUDE_DIRS} )
|
|
|
|
add_definitions( -DCHECK_PWQUALITY -DHAVE_LIBPWQUALITY )
|
|
|
|
endif()
|
|
|
|
|
2017-06-20 23:43:50 +02:00
|
|
|
include_directories( ${PROJECT_BINARY_DIR}/src/libcalamaresui )
|
|
|
|
|
2014-07-31 14:52:05 +02:00
|
|
|
calamares_add_plugin( users
|
|
|
|
TYPE viewmodule
|
|
|
|
EXPORT_MACRO PLUGINDLLEXPORT_PRO
|
|
|
|
SOURCES
|
2014-07-31 14:53:46 +02:00
|
|
|
CreateUserJob.cpp
|
2014-07-31 19:06:31 +02:00
|
|
|
SetPasswordJob.cpp
|
2014-07-31 14:52:05 +02:00
|
|
|
UsersViewStep.cpp
|
|
|
|
UsersPage.cpp
|
2014-10-21 18:59:02 +02:00
|
|
|
SetHostNameJob.cpp
|
2018-01-23 13:02:49 +01:00
|
|
|
CheckPWQuality.cpp
|
2020-07-25 12:47:01 +02:00
|
|
|
Config.cpp
|
2014-07-31 14:52:05 +02:00
|
|
|
UI
|
|
|
|
page_usersetup.ui
|
2014-08-26 15:18:30 +02:00
|
|
|
RESOURCES
|
|
|
|
users.qrc
|
2016-12-07 16:37:29 +01:00
|
|
|
LINK_PRIVATE_LIBRARIES
|
2014-07-31 14:52:05 +02:00
|
|
|
calamaresui
|
2014-07-31 19:06:31 +02:00
|
|
|
${CRYPT_LIBRARIES}
|
2018-01-23 13:02:49 +01:00
|
|
|
${USER_EXTRA_LIB}
|
2020-02-17 10:57:41 +01:00
|
|
|
Qt5::DBus
|
2014-07-31 14:52:05 +02:00
|
|
|
SHARED_LIB
|
|
|
|
)
|
2017-06-20 23:43:50 +02:00
|
|
|
|
2020-02-17 14:36:52 +01:00
|
|
|
calamares_add_test(
|
2020-02-17 18:10:46 +01:00
|
|
|
userspasswordtest
|
2020-02-17 14:36:52 +01:00
|
|
|
SOURCES
|
2020-07-29 13:23:41 +02:00
|
|
|
TestPasswordJob.cpp
|
2020-02-17 14:36:52 +01:00
|
|
|
SetPasswordJob.cpp
|
|
|
|
LIBRARIES
|
|
|
|
${CRYPT_LIBRARIES}
|
|
|
|
)
|
2020-02-17 18:10:46 +01:00
|
|
|
|
2020-07-27 15:00:14 +02:00
|
|
|
calamares_add_test(
|
|
|
|
userscreatetest
|
|
|
|
SOURCES
|
2020-07-29 13:23:41 +02:00
|
|
|
TestCreateUserJob.cpp
|
2020-07-27 15:00:14 +02:00
|
|
|
CreateUserJob.cpp
|
|
|
|
)
|
|
|
|
|
2020-02-17 18:10:46 +01:00
|
|
|
calamares_add_test(
|
2020-07-29 13:23:41 +02:00
|
|
|
usershostnametest
|
2020-02-17 18:10:46 +01:00
|
|
|
SOURCES
|
2020-07-29 13:23:41 +02:00
|
|
|
TestSetHostNameJob.cpp
|
2020-02-17 18:10:46 +01:00
|
|
|
SetHostNameJob.cpp
|
|
|
|
LIBRARIES
|
|
|
|
Qt5::DBus
|
|
|
|
)
|
2020-07-29 13:31:39 +02:00
|
|
|
|
|
|
|
calamares_add_test(
|
|
|
|
userstest
|
|
|
|
SOURCES
|
|
|
|
Tests.cpp
|
|
|
|
Config.cpp
|
|
|
|
)
|