Added qtkeychain_LIBRARIES to test program linker to make it work with static

linkeage.
This commit is contained in:
Kristofer Tingdahl 2016-04-06 09:28:38 +02:00
parent 0b509afc0f
commit a291da01a8
1 changed files with 3 additions and 2 deletions

View File

@ -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})
###