comparison cinst/CMakeLists.txt @ 101:7e2d08555112

Make cinst cmakelist relative so it can be used standalone
author Andre Heinecke <aheinecke@intevation.de>
date Fri, 21 Mar 2014 14:32:58 +0000
parents 8ffbb48528ae
children f61d94d7893e
comparison
equal deleted inserted replaced
100:8fa273791242 101:7e2d08555112
1 cmake_minimum_required(VERSION 2.8)
2
1 set(CMAKE_AUTOMOC OFF) 3 set(CMAKE_AUTOMOC OFF)
2 4
5 set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/../cmake/")
6
7 find_package(PolarSSL)
8
3 include_directories(${POLARSSL_INCLUDE_DIR}) 9 include_directories(${POLARSSL_INCLUDE_DIR})
4 include_directories(${CMAKE_SOURCE_DIR}/common) 10 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../common)
5 11
6 set(CINST_SOURCES 12 set(CINST_SOURCES
7 ${CMAKE_SOURCE_DIR}/cinst/main.c 13 ${CMAKE_CURRENT_SOURCE_DIR}/main.c
8 ${CMAKE_SOURCE_DIR}/common/listutil.c 14 ${CMAKE_CURRENT_SOURCE_DIR}/../common/listutil.c
9 ${CMAKE_SOURCE_DIR}/common/strhelp.c 15 ${CMAKE_CURRENT_SOURCE_DIR}/../common/strhelp.c
10 ) 16 )
11 17
12 set(MOZILLA_SOURCES 18 set(MOZILLA_SOURCES
13 ${CMAKE_SOURCE_DIR}/cinst/mozilla.c 19 ${CMAKE_CURRENT_SOURCE_DIR}/mozilla.c
14 ) 20 )
15 21
16 add_executable(cinst ${CINST_SOURCES}) 22 add_executable(cinst ${CINST_SOURCES})
23 add_executable(mozilla ${MOZILLA_SOURCES})
17 if (WIN32) 24 if (WIN32)
18 set(WIN_EXTRA_LIBS -lcrypt32) 25 set(WIN_EXTRA_LIBS -lcrypt32)
19 endif(WIN32) 26 endif(WIN32)
20 27
21 target_link_libraries(cinst 28 target_link_libraries(cinst
22 ${PROFILING_LIBS} 29 ${PROFILING_LIBS}
23 ${POLARSSL_LIBRARIES} 30 ${POLARSSL_LIBRARIES}
24 ${WIN_EXTRA_LIBS}) 31 ${WIN_EXTRA_LIBS})
25 32
33 target_link_libraries(mozilla
34 ${PROFILING_LIBS})

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