Mercurial > trustbridge
diff ui/tests/CMakeLists.txt @ 307:2fd69803d219
Complete InstRemove NSS test
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Thu, 03 Apr 2014 16:35:21 +0200 |
parents | 4a3febc6d806 |
children | ad28f6b60e6b |
line wrap: on
line diff
--- a/ui/tests/CMakeLists.txt Thu Apr 03 15:30:25 2014 +0200 +++ b/ui/tests/CMakeLists.txt Thu Apr 03 16:35:21 2014 +0200 @@ -50,8 +50,12 @@ add_m13_test(windowsstoretest.cpp "${CERTIFICATELIST_SOURCES};${CMAKE_SOURCE_DIR}/cinst/windowsstore.c") endif (WIN32) -add_m13_test(nsstest.cpp "${CERTIFICATELIST_SOURCES};${CMAKE_SOURCE_DIR}/cinst/nssstore_linux.c") -add_dependencies(nsstest mozilla) +if (NSS_FOUND) + include_directories(${NSS_INCLUDE_DIRS}) + add_m13_test(nsstest.cpp "${CERTIFICATELIST_SOURCES};${CMAKE_SOURCE_DIR}/cinst/nssstore_linux.c") + target_link_libraries(nsstest ${NSS_LIBRARIES}) + add_dependencies(nsstest mozilla) +endif() #add_m13_test(${CMAKE_SOURCE_DIR}/ui/main.cpp "${M13UI_SOURCES}")