comparison cinst/CMakeLists.txt @ 834:8081ed84589d

Use static nss from subrepository on windows
author Andre Heinecke <andre.heinecke@intevation.de>
date Mon, 28 Jul 2014 13:03:45 +0200
parents ac9e95ef6966
children 4f999c7821ce
comparison
equal deleted inserted replaced
833:e1bb60a8129b 834:8081ed84589d
31 31
32 install(TARGETS cinst DESTINATION bin) 32 install(TARGETS cinst DESTINATION bin)
33 33
34 # ---------------------------------------------------------------------- 34 # ----------------------------------------------------------------------
35 # Mozilla nss store specific certificate installer: 35 # Mozilla nss store specific certificate installer:
36 set(MOZILLA_SOURCES
37 ${CMAKE_CURRENT_SOURCE_DIR}/nss-secitemlist.c
38 ${CMAKE_CURRENT_SOURCE_DIR}/mozilla.c
39 )
36 40
37 if(NSS_FOUND) 41 if(WIN32 OR NSS_FOUND)
38 include_directories(${NSS_INCLUDE_DIRS}) 42 include_directories(${NSS_INCLUDE_DIRS})
39 set(MOZILLA_SOURCES 43 add_executable(mozilla ${MOZILLA_SOURCES})
40 ${CMAKE_CURRENT_SOURCE_DIR}/nss-secitemlist.c 44 target_link_libraries(mozilla
41 ${CMAKE_CURRENT_SOURCE_DIR}/mozilla.c 45 trustbridge_common
42 ) 46 ${POLARSSL_LIBRARIES}
43 add_executable(mozilla ${MOZILLA_SOURCES}) 47 ${NSS_LIBRARIES}
44 target_link_libraries(mozilla 48 ${PROFILING_LIBS})
45 trustbridge_common 49 set_target_properties(mozilla PROPERTIES COMPILE_FLAGS "-std=c99")
46 ${POLARSSL_LIBRARIES} 50 install(TARGETS mozilla DESTINATION bin)
47 ${NSS_LIBRARIES}
48 ${PROFILING_LIBS})
49 set_target_properties(mozilla PROPERTIES COMPILE_FLAGS "-std=c99")
50 install(TARGETS mozilla DESTINATION bin)
51 else() 51 else()
52 message(STATUS "WARNING: Could not find nss. Mozilla cert installer will not be build!") 52 message(STATUS "WARNING: Could not find nss. Mozilla cert installer will not be build!")
53 endif() 53 endif()

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