annotate common/CMakeLists.txt @ 1306:845048d4a69f

(issue159) Use user specific appdata directory for nss list with simple rights. Using the ProgramData folder with resticted access rights failed in case the process was not elevated.
author Andre Heinecke <andre.heinecke@intevation.de>
date Mon, 13 Oct 2014 12:31:37 +0200
parents 20ca94680003
children
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
634
80d1a80b3e8d Factor out selftest for better test and reviewability
Andre Heinecke <andre.heinecke@intevation.de>
parents: 619
diff changeset
18 selftest.c
782
20ca94680003 Implemented detection of running instance on linux using a lock file.
Sascha Wilde <wilde@intevation.de>
parents: 634
diff changeset
19 linuxlockfile.c
102
c879a709310d Add static common library
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
20 )
c879a709310d Add static common library
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
21
619
e780405f8150 Add generator for windmc header file
Andre Heinecke <andre.heinecke@intevation.de>
parents: 579
diff changeset
22 if(WIN32)
e780405f8150 Add generator for windmc header file
Andre Heinecke <andre.heinecke@intevation.de>
parents: 579
diff changeset
23 # Add the event messages
e780405f8150 Add generator for windmc header file
Andre Heinecke <andre.heinecke@intevation.de>
parents: 579
diff changeset
24 if (MINGW)
e780405f8150 Add generator for windmc header file
Andre Heinecke <andre.heinecke@intevation.de>
parents: 579
diff changeset
25 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
26 else()
e780405f8150 Add generator for windmc header file
Andre Heinecke <andre.heinecke@intevation.de>
parents: 579
diff changeset
27 # untested
e780405f8150 Add generator for windmc header file
Andre Heinecke <andre.heinecke@intevation.de>
parents: 579
diff changeset
28 set(MC_COMPILER "mc.exe")
e780405f8150 Add generator for windmc header file
Andre Heinecke <andre.heinecke@intevation.de>
parents: 579
diff changeset
29 endif()
e780405f8150 Add generator for windmc header file
Andre Heinecke <andre.heinecke@intevation.de>
parents: 579
diff changeset
30
e780405f8150 Add generator for windmc header file
Andre Heinecke <andre.heinecke@intevation.de>
parents: 579
diff changeset
31 add_custom_command(
e780405f8150 Add generator for windmc header file
Andre Heinecke <andre.heinecke@intevation.de>
parents: 579
diff changeset
32 OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/events.h
e780405f8150 Add generator for windmc header file
Andre Heinecke <andre.heinecke@intevation.de>
parents: 579
diff changeset
33 ${CMAKE_CURRENT_BINARY_DIR}/events.rc
e780405f8150 Add generator for windmc header file
Andre Heinecke <andre.heinecke@intevation.de>
parents: 579
diff changeset
34 ${CMAKE_CURRENT_BINARY_DIR}/MSG00407.bin
e780405f8150 Add generator for windmc header file
Andre Heinecke <andre.heinecke@intevation.de>
parents: 579
diff changeset
35 ${CMAKE_CURRENT_BINARY_DIR}/MSG00409.bin
e780405f8150 Add generator for windmc header file
Andre Heinecke <andre.heinecke@intevation.de>
parents: 579
diff changeset
36 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
37 DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/events.mc)
e780405f8150 Add generator for windmc header file
Andre Heinecke <andre.heinecke@intevation.de>
parents: 579
diff changeset
38 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
39 endif()
e780405f8150 Add generator for windmc header file
Andre Heinecke <andre.heinecke@intevation.de>
parents: 579
diff changeset
40
408
ac9e95ef6966 rename m13_common to trustbridge_common
Andre Heinecke <aheinecke@intevation.de>
parents: 405
diff changeset
41 add_library(trustbridge_common STATIC ${trustbridge_common_src})

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