Added qtkeychain_LIBRARIES to test program linker to make it work with static
linkeage.
This commit is contained in:
parent
0b509afc0f
commit
a291da01a8
|
@ -13,6 +13,7 @@ include(GNUInstallDirs)
|
|||
|
||||
option(BUILD_WITH_QT4 "Build qtkeychain with Qt4 no matter if Qt5 was found" OFF)
|
||||
option(BUILD_TRANSLATIONS "Build translations" ON)
|
||||
option(QTKEYCHAIN_STATIC "Build static library" OFF)
|
||||
|
||||
if (WIN32)
|
||||
option(USE_CREDENTIAL_STORE "Build with windows CredentialStore support" ON)
|
||||
|
@ -185,7 +186,7 @@ install(TARGETS ${QTKEYCHAIN_TARGET_NAME}
|
|||
)
|
||||
|
||||
add_executable( testclient testclient.cpp )
|
||||
target_link_libraries( testclient ${QTKEYCHAIN_TARGET_NAME})
|
||||
target_link_libraries( testclient ${QTKEYCHAIN_TARGET_NAME} ${qtkeychain_LIBRARIES})
|
||||
|
||||
|
||||
###
|
||||
|
|
Loading…
Reference in New Issue