annotate common/CMakeLists.txt @ 629:facb13c578f1

Add certificate pinning to verify_binary_win
author Andre Heinecke <andre.heinecke@intevation.de>
date Mon, 23 Jun 2014 13:04:34 +0200
parents e780405f8150
children 80d1a80b3e8d
rev   line source
405
35d6b371ba63 Add License header for CMake and shell scripts
Andre Heinecke <aheinecke@intevation.de>
parents: 321
diff changeset
1 # Copyright (C) 2014 by Bundesamt für Sicherheit in der Informationstechnik
35d6b371ba63 Add License header for CMake and shell scripts
Andre Heinecke <aheinecke@intevation.de>
parents: 321
diff changeset
2 # Software engineering by Intevation GmbH
35d6b371ba63 Add License header for CMake and shell scripts
Andre Heinecke <aheinecke@intevation.de>
parents: 321
diff changeset
3 #
35d6b371ba63 Add License header for CMake and shell scripts
Andre Heinecke <aheinecke@intevation.de>
parents: 321
diff changeset
4 # This file is Free Software under the GNU GPL (v>=2)
35d6b371ba63 Add License header for CMake and shell scripts
Andre Heinecke <aheinecke@intevation.de>
parents: 321
diff changeset
5 # and comes with ABSOLUTELY NO WARRANTY!
35d6b371ba63 Add License header for CMake and shell scripts
Andre Heinecke <aheinecke@intevation.de>
parents: 321
diff changeset
6 # See LICENSE.txt for details.
35d6b371ba63 Add License header for CMake and shell scripts
Andre Heinecke <aheinecke@intevation.de>
parents: 321
diff changeset
7
619
e780405f8150 Add generator for windmc header file
Andre Heinecke <andre.heinecke@intevation.de>
parents: 579
diff changeset
8 include_directories(${CMAKE_CURRENT_BINARY_DIR})
e780405f8150 Add generator for windmc header file
Andre Heinecke <andre.heinecke@intevation.de>
parents: 579
diff changeset
9
408
ac9e95ef6966 rename m13_common to trustbridge_common
Andre Heinecke <aheinecke@intevation.de>
parents: 405
diff changeset
10 set (trustbridge_common_src
259
20d515604daa Added new module with helper functions to parse certs.
Sascha Wilde <wilde@intevation.de>
parents: 146
diff changeset
11 certhelp.c
102
c879a709310d Add static common library
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
12 listutil.c
260
Sascha Wilde <wilde@intevation.de>
parents: 259 252
diff changeset
13 logging.c
259
20d515604daa Added new module with helper functions to parse certs.
Sascha Wilde <wilde@intevation.de>
parents: 146
diff changeset
14 portpath.c
102
c879a709310d Add static common library
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
15 strhelp.c
321
824ef90a6721 Move is_elevated into common/util.c file for better reuse
Andre Heinecke <aheinecke@intevation.de>
parents: 260
diff changeset
16 util.c
579
f4ce4eef3b38 Implement PKCS#7 embedded signature verfification for windows
Andre Heinecke <aheinecke@intevation.de>
parents: 408
diff changeset
17 binverify.c
102
c879a709310d Add static common library
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
18 )
c879a709310d Add static common library
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
19
619
e780405f8150 Add generator for windmc header file
Andre Heinecke <andre.heinecke@intevation.de>
parents: 579
diff changeset
20 if(WIN32)
e780405f8150 Add generator for windmc header file
Andre Heinecke <andre.heinecke@intevation.de>
parents: 579
diff changeset
21 # Add the event messages
e780405f8150 Add generator for windmc header file
Andre Heinecke <andre.heinecke@intevation.de>
parents: 579
diff changeset
22 if (MINGW)
e780405f8150 Add generator for windmc header file
Andre Heinecke <andre.heinecke@intevation.de>
parents: 579
diff changeset
23 STRING(REGEX REPLACE "windres" "windmc" MC_COMPILER ${CMAKE_RC_COMPILER})
e780405f8150 Add generator for windmc header file
Andre Heinecke <andre.heinecke@intevation.de>
parents: 579
diff changeset
24 else()
e780405f8150 Add generator for windmc header file
Andre Heinecke <andre.heinecke@intevation.de>
parents: 579
diff changeset
25 # untested
e780405f8150 Add generator for windmc header file
Andre Heinecke <andre.heinecke@intevation.de>
parents: 579
diff changeset
26 set(MC_COMPILER "mc.exe")
e780405f8150 Add generator for windmc header file
Andre Heinecke <andre.heinecke@intevation.de>
parents: 579
diff changeset
27 endif()
e780405f8150 Add generator for windmc header file
Andre Heinecke <andre.heinecke@intevation.de>
parents: 579
diff changeset
28
e780405f8150 Add generator for windmc header file
Andre Heinecke <andre.heinecke@intevation.de>
parents: 579
diff changeset
29 add_custom_command(
e780405f8150 Add generator for windmc header file
Andre Heinecke <andre.heinecke@intevation.de>
parents: 579
diff changeset
30 OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/events.h
e780405f8150 Add generator for windmc header file
Andre Heinecke <andre.heinecke@intevation.de>
parents: 579
diff changeset
31 ${CMAKE_CURRENT_BINARY_DIR}/events.rc
e780405f8150 Add generator for windmc header file
Andre Heinecke <andre.heinecke@intevation.de>
parents: 579
diff changeset
32 ${CMAKE_CURRENT_BINARY_DIR}/MSG00407.bin
e780405f8150 Add generator for windmc header file
Andre Heinecke <andre.heinecke@intevation.de>
parents: 579
diff changeset
33 ${CMAKE_CURRENT_BINARY_DIR}/MSG00409.bin
e780405f8150 Add generator for windmc header file
Andre Heinecke <andre.heinecke@intevation.de>
parents: 579
diff changeset
34 COMMAND ${MC_COMPILER} ${CMAKE_SOURCE_DIR}/common/events.mc -a -U -r ${CMAKE_CURRENT_BINARY_DIR} -h ${CMAKE_CURRENT_BINARY_DIR}
e780405f8150 Add generator for windmc header file
Andre Heinecke <andre.heinecke@intevation.de>
parents: 579
diff changeset
35 DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/events.mc)
e780405f8150 Add generator for windmc header file
Andre Heinecke <andre.heinecke@intevation.de>
parents: 579
diff changeset
36 set(trustbridge_common_src ${trustbridge_common_src} ${CMAKE_CURRENT_BINARY_DIR}/events.h)
e780405f8150 Add generator for windmc header file
Andre Heinecke <andre.heinecke@intevation.de>
parents: 579
diff changeset
37 endif()
e780405f8150 Add generator for windmc header file
Andre Heinecke <andre.heinecke@intevation.de>
parents: 579
diff changeset
38
408
ac9e95ef6966 rename m13_common to trustbridge_common
Andre Heinecke <aheinecke@intevation.de>
parents: 405
diff changeset
39 add_library(trustbridge_common STATIC ${trustbridge_common_src})

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