Mercurial > trustbridge
annotate common/CMakeLists.txt @ 701:31c3d2bc9880
(Issue22) Fix painting problems with fixed size in windows style.
We now use fusion style also on Windows for the combobox to
let it be shown in the same way as we do on GNU/Linux.
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Wed, 02 Jul 2014 11:26:42 +0200 |
parents | 80d1a80b3e8d |
children | 20ca94680003 |
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 | 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 |
102
c879a709310d
Add static common library
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
19 ) |
c879a709310d
Add static common library
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
20 |
619
e780405f8150
Add generator for windmc header file
Andre Heinecke <andre.heinecke@intevation.de>
parents:
579
diff
changeset
|
21 if(WIN32) |
e780405f8150
Add generator for windmc header file
Andre Heinecke <andre.heinecke@intevation.de>
parents:
579
diff
changeset
|
22 # Add the event messages |
e780405f8150
Add generator for windmc header file
Andre Heinecke <andre.heinecke@intevation.de>
parents:
579
diff
changeset
|
23 if (MINGW) |
e780405f8150
Add generator for windmc header file
Andre Heinecke <andre.heinecke@intevation.de>
parents:
579
diff
changeset
|
24 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
|
25 else() |
e780405f8150
Add generator for windmc header file
Andre Heinecke <andre.heinecke@intevation.de>
parents:
579
diff
changeset
|
26 # untested |
e780405f8150
Add generator for windmc header file
Andre Heinecke <andre.heinecke@intevation.de>
parents:
579
diff
changeset
|
27 set(MC_COMPILER "mc.exe") |
e780405f8150
Add generator for windmc header file
Andre Heinecke <andre.heinecke@intevation.de>
parents:
579
diff
changeset
|
28 endif() |
e780405f8150
Add generator for windmc header file
Andre Heinecke <andre.heinecke@intevation.de>
parents:
579
diff
changeset
|
29 |
e780405f8150
Add generator for windmc header file
Andre Heinecke <andre.heinecke@intevation.de>
parents:
579
diff
changeset
|
30 add_custom_command( |
e780405f8150
Add generator for windmc header file
Andre Heinecke <andre.heinecke@intevation.de>
parents:
579
diff
changeset
|
31 OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/events.h |
e780405f8150
Add generator for windmc header file
Andre Heinecke <andre.heinecke@intevation.de>
parents:
579
diff
changeset
|
32 ${CMAKE_CURRENT_BINARY_DIR}/events.rc |
e780405f8150
Add generator for windmc header file
Andre Heinecke <andre.heinecke@intevation.de>
parents:
579
diff
changeset
|
33 ${CMAKE_CURRENT_BINARY_DIR}/MSG00407.bin |
e780405f8150
Add generator for windmc header file
Andre Heinecke <andre.heinecke@intevation.de>
parents:
579
diff
changeset
|
34 ${CMAKE_CURRENT_BINARY_DIR}/MSG00409.bin |
e780405f8150
Add generator for windmc header file
Andre Heinecke <andre.heinecke@intevation.de>
parents:
579
diff
changeset
|
35 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
|
36 DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/events.mc) |
e780405f8150
Add generator for windmc header file
Andre Heinecke <andre.heinecke@intevation.de>
parents:
579
diff
changeset
|
37 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
|
38 endif() |
e780405f8150
Add generator for windmc header file
Andre Heinecke <andre.heinecke@intevation.de>
parents:
579
diff
changeset
|
39 |
408
ac9e95ef6966
rename m13_common to trustbridge_common
Andre Heinecke <aheinecke@intevation.de>
parents:
405
diff
changeset
|
40 add_library(trustbridge_common STATIC ${trustbridge_common_src}) |