Mercurial > trustbridge
annotate cinst/CMakeLists.txt @ 103:f61d94d7893e
Use common as library
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Fri, 21 Mar 2014 14:44:50 +0000 |
parents | 7e2d08555112 |
children | faf96d9a1010 |
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 set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/../cmake/") |
7e2d08555112
Make cinst cmakelist relative so it can be used standalone
Andre Heinecke <aheinecke@intevation.de>
parents:
68
diff
changeset
|
6 |
7e2d08555112
Make cinst cmakelist relative so it can be used standalone
Andre Heinecke <aheinecke@intevation.de>
parents:
68
diff
changeset
|
7 find_package(PolarSSL) |
7e2d08555112
Make cinst cmakelist relative so it can be used standalone
Andre Heinecke <aheinecke@intevation.de>
parents:
68
diff
changeset
|
8 |
37
00aa5fa3c2fb
Build System maintainance. Correct integration of Polarssl.
Andre Heinecke <aheinecke@intevation.de>
parents:
25
diff
changeset
|
9 include_directories(${POLARSSL_INCLUDE_DIR}) |
101
7e2d08555112
Make cinst cmakelist relative so it can be used standalone
Andre Heinecke <aheinecke@intevation.de>
parents:
68
diff
changeset
|
10 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
|
11 |
25
92108a2120f1
Move certificatelist to common. Add cinst directory
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
12 set(CINST_SOURCES |
101
7e2d08555112
Make cinst cmakelist relative so it can be used standalone
Andre Heinecke <aheinecke@intevation.de>
parents:
68
diff
changeset
|
13 ${CMAKE_CURRENT_SOURCE_DIR}/main.c |
25
92108a2120f1
Move certificatelist to common. Add cinst directory
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
14 ) |
92108a2120f1
Move certificatelist to common. Add cinst directory
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
15 |
37
00aa5fa3c2fb
Build System maintainance. Correct integration of Polarssl.
Andre Heinecke <aheinecke@intevation.de>
parents:
25
diff
changeset
|
16 set(MOZILLA_SOURCES |
101
7e2d08555112
Make cinst cmakelist relative so it can be used standalone
Andre Heinecke <aheinecke@intevation.de>
parents:
68
diff
changeset
|
17 ${CMAKE_CURRENT_SOURCE_DIR}/mozilla.c |
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 |
25
92108a2120f1
Move certificatelist to common. Add cinst directory
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
20 add_executable(cinst ${CINST_SOURCES}) |
101
7e2d08555112
Make cinst cmakelist relative so it can be used standalone
Andre Heinecke <aheinecke@intevation.de>
parents:
68
diff
changeset
|
21 add_executable(mozilla ${MOZILLA_SOURCES}) |
68
8ffbb48528ae
Add certificate installation for windows
Andre Heinecke <aheinecke@intevation.de>
parents:
59
diff
changeset
|
22 if (WIN32) |
8ffbb48528ae
Add certificate installation for windows
Andre Heinecke <aheinecke@intevation.de>
parents:
59
diff
changeset
|
23 set(WIN_EXTRA_LIBS -lcrypt32) |
8ffbb48528ae
Add certificate installation for windows
Andre Heinecke <aheinecke@intevation.de>
parents:
59
diff
changeset
|
24 endif(WIN32) |
37
00aa5fa3c2fb
Build System maintainance. Correct integration of Polarssl.
Andre Heinecke <aheinecke@intevation.de>
parents:
25
diff
changeset
|
25 |
00aa5fa3c2fb
Build System maintainance. Correct integration of Polarssl.
Andre Heinecke <aheinecke@intevation.de>
parents:
25
diff
changeset
|
26 target_link_libraries(cinst |
103
f61d94d7893e
Use common as library
Andre Heinecke <aheinecke@intevation.de>
parents:
101
diff
changeset
|
27 m13_common |
37
00aa5fa3c2fb
Build System maintainance. Correct integration of Polarssl.
Andre Heinecke <aheinecke@intevation.de>
parents:
25
diff
changeset
|
28 ${PROFILING_LIBS} |
68
8ffbb48528ae
Add certificate installation for windows
Andre Heinecke <aheinecke@intevation.de>
parents:
59
diff
changeset
|
29 ${POLARSSL_LIBRARIES} |
8ffbb48528ae
Add certificate installation for windows
Andre Heinecke <aheinecke@intevation.de>
parents:
59
diff
changeset
|
30 ${WIN_EXTRA_LIBS}) |
8ffbb48528ae
Add certificate installation for windows
Andre Heinecke <aheinecke@intevation.de>
parents:
59
diff
changeset
|
31 |
101
7e2d08555112
Make cinst cmakelist relative so it can be used standalone
Andre Heinecke <aheinecke@intevation.de>
parents:
68
diff
changeset
|
32 target_link_libraries(mozilla |
7e2d08555112
Make cinst cmakelist relative so it can be used standalone
Andre Heinecke <aheinecke@intevation.de>
parents:
68
diff
changeset
|
33 ${PROFILING_LIBS}) |