comparison cinst/CMakeLists.txt @ 224:689b94dd89a9

Wrote FindNSS to build against nss without pkg-config support (Windows).
author Sascha Wilde <wilde@intevation.de>
date Thu, 27 Mar 2014 17:00:01 +0100
parents d29997e09177
children 809eaca3898c
comparison
equal deleted inserted replaced
223:d29997e09177 224:689b94dd89a9
23 install(TARGETS cinst DESTINATION bin) 23 install(TARGETS cinst DESTINATION bin)
24 24
25 # ---------------------------------------------------------------------- 25 # ----------------------------------------------------------------------
26 # Mozilla nss store specific certificate installer: 26 # Mozilla nss store specific certificate installer:
27 27
28 include(FindPkgConfig) 28 find_package(NSS)
29 # FIXME: maybe a minimal version would be wise...
30 pkg_check_modules (NSS nss)
31 include_directories(${NSS_INCLUDE_DIRS})
32 29
33 if(NSS_FOUND) 30 if(NSS_FOUND)
31 include_directories(${NSS_INCLUDE_DIRS})
34 set(MOZILLA_SOURCES 32 set(MOZILLA_SOURCES
35 ${CMAKE_CURRENT_SOURCE_DIR}/mozilla.c 33 ${CMAKE_CURRENT_SOURCE_DIR}/mozilla.c
36 ) 34 )
37 add_executable(mozilla ${MOZILLA_SOURCES}) 35 add_executable(mozilla ${MOZILLA_SOURCES})
38 target_link_libraries(mozilla 36 target_link_libraries(mozilla

http://wald.intevation.org/projects/trustbridge/