Mercurial > trustbridge
annotate cinst/CMakeLists.txt @ 368:f9c98f9e9f76
Show the new dialog on save button click.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Tue, 15 Apr 2014 09:44:32 +0200 |
parents | eff8e7ce4dae |
children | d10d9bc2e84f |
rev | line source |
---|---|
101
7e2d08555112
Make cinst cmakelist relative so it can be used standalone
Andre Heinecke <aheinecke@intevation.de>
parents:
68
diff
changeset
|
1 cmake_minimum_required(VERSION 2.8) |
7e2d08555112
Make cinst cmakelist relative so it can be used standalone
Andre Heinecke <aheinecke@intevation.de>
parents:
68
diff
changeset
|
2 |
25
92108a2120f1
Move certificatelist to common. Add cinst directory
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
3 set(CMAKE_AUTOMOC OFF) |
92108a2120f1
Move certificatelist to common. Add cinst directory
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
4 |
101
7e2d08555112
Make cinst cmakelist relative so it can be used standalone
Andre Heinecke <aheinecke@intevation.de>
parents:
68
diff
changeset
|
5 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../common) |
37
00aa5fa3c2fb
Build System maintainance. Correct integration of Polarssl.
Andre Heinecke <aheinecke@intevation.de>
parents:
25
diff
changeset
|
6 |
25
92108a2120f1
Move certificatelist to common. Add cinst directory
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
7 set(CINST_SOURCES |
137
4904fe01055d
Factor out windows specific parts
Andre Heinecke <aheinecke@intevation.de>
parents:
124
diff
changeset
|
8 ${CMAKE_CURRENT_SOURCE_DIR}/windowsstore.c |
302
fac7e1b0e558
Add nss store calling function and use it in cinst
Andre Heinecke <andre.heinecke@intevation.de>
parents:
242
diff
changeset
|
9 ${CMAKE_CURRENT_SOURCE_DIR}/nssstore_linux.c |
324
eff8e7ce4dae
Add first compiling implementation of nssstore_win.c
Andre Heinecke <aheinecke@intevation.de>
parents:
307
diff
changeset
|
10 ${CMAKE_CURRENT_SOURCE_DIR}/nssstore_win.c |
101
7e2d08555112
Make cinst cmakelist relative so it can be used standalone
Andre Heinecke <aheinecke@intevation.de>
parents:
68
diff
changeset
|
11 ${CMAKE_CURRENT_SOURCE_DIR}/main.c |
25
92108a2120f1
Move certificatelist to common. Add cinst directory
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
12 ) |
223
d29997e09177
NSS first Blood. Added code to list certs in found stores.
Sascha Wilde <wilde@intevation.de>
parents:
196
diff
changeset
|
13 add_executable(cinst ${CINST_SOURCES}) |
25
92108a2120f1
Move certificatelist to common. Add cinst directory
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
14 |
68
8ffbb48528ae
Add certificate installation for windows
Andre Heinecke <aheinecke@intevation.de>
parents:
59
diff
changeset
|
15 if (WIN32) |
324
eff8e7ce4dae
Add first compiling implementation of nssstore_win.c
Andre Heinecke <aheinecke@intevation.de>
parents:
307
diff
changeset
|
16 set(WIN_EXTRA_LIBS -lcrypt32 -luserenv) |
68
8ffbb48528ae
Add certificate installation for windows
Andre Heinecke <aheinecke@intevation.de>
parents:
59
diff
changeset
|
17 endif(WIN32) |
37
00aa5fa3c2fb
Build System maintainance. Correct integration of Polarssl.
Andre Heinecke <aheinecke@intevation.de>
parents:
25
diff
changeset
|
18 |
00aa5fa3c2fb
Build System maintainance. Correct integration of Polarssl.
Andre Heinecke <aheinecke@intevation.de>
parents:
25
diff
changeset
|
19 target_link_libraries(cinst |
103
f61d94d7893e
Use common as library
Andre Heinecke <aheinecke@intevation.de>
parents:
101
diff
changeset
|
20 m13_common |
37
00aa5fa3c2fb
Build System maintainance. Correct integration of Polarssl.
Andre Heinecke <aheinecke@intevation.de>
parents:
25
diff
changeset
|
21 ${PROFILING_LIBS} |
68
8ffbb48528ae
Add certificate installation for windows
Andre Heinecke <aheinecke@intevation.de>
parents:
59
diff
changeset
|
22 ${POLARSSL_LIBRARIES} |
8ffbb48528ae
Add certificate installation for windows
Andre Heinecke <aheinecke@intevation.de>
parents:
59
diff
changeset
|
23 ${WIN_EXTRA_LIBS}) |
8ffbb48528ae
Add certificate installation for windows
Andre Heinecke <aheinecke@intevation.de>
parents:
59
diff
changeset
|
24 |
124
2d50ff378367
Add install targets
Andre Heinecke <aheinecke@intevation.de>
parents:
122
diff
changeset
|
25 install(TARGETS cinst DESTINATION bin) |
2d50ff378367
Add install targets
Andre Heinecke <aheinecke@intevation.de>
parents:
122
diff
changeset
|
26 |
223
d29997e09177
NSS first Blood. Added code to list certs in found stores.
Sascha Wilde <wilde@intevation.de>
parents:
196
diff
changeset
|
27 # ---------------------------------------------------------------------- |
d29997e09177
NSS first Blood. Added code to list certs in found stores.
Sascha Wilde <wilde@intevation.de>
parents:
196
diff
changeset
|
28 # Mozilla nss store specific certificate installer: |
d29997e09177
NSS first Blood. Added code to list certs in found stores.
Sascha Wilde <wilde@intevation.de>
parents:
196
diff
changeset
|
29 |
d29997e09177
NSS first Blood. Added code to list certs in found stores.
Sascha Wilde <wilde@intevation.de>
parents:
196
diff
changeset
|
30 if(NSS_FOUND) |
224
689b94dd89a9
Wrote FindNSS to build against nss without pkg-config support (Windows).
Sascha Wilde <wilde@intevation.de>
parents:
223
diff
changeset
|
31 include_directories(${NSS_INCLUDE_DIRS}) |
223
d29997e09177
NSS first Blood. Added code to list certs in found stores.
Sascha Wilde <wilde@intevation.de>
parents:
196
diff
changeset
|
32 set(MOZILLA_SOURCES |
242
809eaca3898c
Added helper functions to handle lists of NSS SECItems.
Sascha Wilde <wilde@intevation.de>
parents:
224
diff
changeset
|
33 ${CMAKE_CURRENT_SOURCE_DIR}/nss-secitemlist.c |
223
d29997e09177
NSS first Blood. Added code to list certs in found stores.
Sascha Wilde <wilde@intevation.de>
parents:
196
diff
changeset
|
34 ${CMAKE_CURRENT_SOURCE_DIR}/mozilla.c |
d29997e09177
NSS first Blood. Added code to list certs in found stores.
Sascha Wilde <wilde@intevation.de>
parents:
196
diff
changeset
|
35 ) |
d29997e09177
NSS first Blood. Added code to list certs in found stores.
Sascha Wilde <wilde@intevation.de>
parents:
196
diff
changeset
|
36 add_executable(mozilla ${MOZILLA_SOURCES}) |
d29997e09177
NSS first Blood. Added code to list certs in found stores.
Sascha Wilde <wilde@intevation.de>
parents:
196
diff
changeset
|
37 target_link_libraries(mozilla |
122
65941f3d5db8
Added missing stuff from last commit.
Sascha Wilde <wilde@intevation.de>
parents:
105
diff
changeset
|
38 m13_common |
160
bf4bfd8843bd
Add memory allocating base64 decode function
Andre Heinecke <aheinecke@intevation.de>
parents:
137
diff
changeset
|
39 ${POLARSSL_LIBRARIES} |
223
d29997e09177
NSS first Blood. Added code to list certs in found stores.
Sascha Wilde <wilde@intevation.de>
parents:
196
diff
changeset
|
40 ${NSS_LIBRARIES} |
101
7e2d08555112
Make cinst cmakelist relative so it can be used standalone
Andre Heinecke <aheinecke@intevation.de>
parents:
68
diff
changeset
|
41 ${PROFILING_LIBS}) |
223
d29997e09177
NSS first Blood. Added code to list certs in found stores.
Sascha Wilde <wilde@intevation.de>
parents:
196
diff
changeset
|
42 set_target_properties(mozilla PROPERTIES COMPILE_FLAGS "-std=c99") |
d29997e09177
NSS first Blood. Added code to list certs in found stores.
Sascha Wilde <wilde@intevation.de>
parents:
196
diff
changeset
|
43 install(TARGETS mozilla DESTINATION bin) |
d29997e09177
NSS first Blood. Added code to list certs in found stores.
Sascha Wilde <wilde@intevation.de>
parents:
196
diff
changeset
|
44 else() |
d29997e09177
NSS first Blood. Added code to list certs in found stores.
Sascha Wilde <wilde@intevation.de>
parents:
196
diff
changeset
|
45 message(STATUS "WARNING: Could not find nss. Mozilla cert installer will not be build!") |
d29997e09177
NSS first Blood. Added code to list certs in found stores.
Sascha Wilde <wilde@intevation.de>
parents:
196
diff
changeset
|
46 endif() |