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: andre@619: include_directories(${CMAKE_CURRENT_BINARY_DIR}) andre@619: aheinecke@408: set (trustbridge_common_src wilde@259: certhelp.c aheinecke@102: listutil.c wilde@260: logging.c wilde@259: portpath.c aheinecke@102: strhelp.c aheinecke@321: util.c aheinecke@579: binverify.c andre@634: selftest.c wilde@782: linuxlockfile.c aheinecke@102: ) aheinecke@102: andre@619: if(WIN32) andre@619: # Add the event messages andre@619: if (MINGW) andre@619: STRING(REGEX REPLACE "windres" "windmc" MC_COMPILER ${CMAKE_RC_COMPILER}) andre@619: else() andre@619: # untested andre@619: set(MC_COMPILER "mc.exe") andre@619: endif() andre@619: andre@619: add_custom_command( andre@619: OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/events.h andre@619: ${CMAKE_CURRENT_BINARY_DIR}/events.rc andre@619: ${CMAKE_CURRENT_BINARY_DIR}/MSG00407.bin andre@619: ${CMAKE_CURRENT_BINARY_DIR}/MSG00409.bin andre@619: COMMAND ${MC_COMPILER} ${CMAKE_SOURCE_DIR}/common/events.mc -a -U -r ${CMAKE_CURRENT_BINARY_DIR} -h ${CMAKE_CURRENT_BINARY_DIR} andre@619: DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/events.mc) andre@619: set(trustbridge_common_src ${trustbridge_common_src} ${CMAKE_CURRENT_BINARY_DIR}/events.h) andre@619: endif() andre@619: aheinecke@408: add_library(trustbridge_common STATIC ${trustbridge_common_src})