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 aheinecke@101: ${CMAKE_CURRENT_SOURCE_DIR}/main.c aheinecke@25: ) wilde@223: add_executable(cinst ${CINST_SOURCES}) aheinecke@25: aheinecke@68: if (WIN32) aheinecke@68: set(WIN_EXTRA_LIBS -lcrypt32) 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: include(FindPkgConfig) wilde@223: # FIXME: maybe a minimal version would be wise... wilde@223: pkg_check_modules (NSS nss) wilde@223: include_directories(${NSS_INCLUDE_DIRS}) wilde@223: wilde@223: if(NSS_FOUND) wilde@223: set(MOZILLA_SOURCES 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()