aheinecke@405: # Copyright (C) 2014 by Bundesamt für Sicherheit in der Informationstechnik aheinecke@405: # Software engineering by Intevation GmbH aheinecke@405: # aheinecke@405: # This file is Free Software under the GNU GPL (v>=2) aheinecke@405: # and comes with ABSOLUTELY NO WARRANTY! aheinecke@405: # See LICENSE.txt for details. aheinecke@405: aheinecke@101: cmake_minimum_required(VERSION 2.8) aheinecke@101: aheinecke@25: set(CMAKE_AUTOMOC OFF) aheinecke@25: aheinecke@101: include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../common) aheinecke@37: aheinecke@25: set(CINST_SOURCES aheinecke@137: ${CMAKE_CURRENT_SOURCE_DIR}/windowsstore.c andre@302: ${CMAKE_CURRENT_SOURCE_DIR}/nssstore_linux.c aheinecke@324: ${CMAKE_CURRENT_SOURCE_DIR}/nssstore_win.c aheinecke@101: ${CMAKE_CURRENT_SOURCE_DIR}/main.c aheinecke@25: ) wilde@223: add_executable(cinst ${CINST_SOURCES}) aheinecke@25: aheinecke@68: if (WIN32) aheinecke@363: set(WIN_EXTRA_LIBS -lcrypt32 -luserenv -lshell32) aheinecke@68: endif(WIN32) aheinecke@37: aheinecke@37: target_link_libraries(cinst aheinecke@103: m13_common aheinecke@37: ${PROFILING_LIBS} aheinecke@68: ${POLARSSL_LIBRARIES} aheinecke@68: ${WIN_EXTRA_LIBS}) aheinecke@68: aheinecke@124: install(TARGETS cinst DESTINATION bin) aheinecke@124: wilde@223: # ---------------------------------------------------------------------- wilde@223: # Mozilla nss store specific certificate installer: wilde@223: wilde@223: if(NSS_FOUND) wilde@224: include_directories(${NSS_INCLUDE_DIRS}) wilde@223: set(MOZILLA_SOURCES wilde@242: ${CMAKE_CURRENT_SOURCE_DIR}/nss-secitemlist.c wilde@223: ${CMAKE_CURRENT_SOURCE_DIR}/mozilla.c wilde@223: ) wilde@223: add_executable(mozilla ${MOZILLA_SOURCES}) wilde@223: target_link_libraries(mozilla wilde@122: m13_common aheinecke@160: ${POLARSSL_LIBRARIES} wilde@223: ${NSS_LIBRARIES} aheinecke@101: ${PROFILING_LIBS}) wilde@223: set_target_properties(mozilla PROPERTIES COMPILE_FLAGS "-std=c99") wilde@223: install(TARGETS mozilla DESTINATION bin) wilde@223: else() wilde@223: message(STATUS "WARNING: Could not find nss. Mozilla cert installer will not be build!") wilde@223: endif()