source: verona/CMakeLists.txt @ 243:df83b5c71c24

Last change on this file since 243:df83b5c71c24 was 228:b3d76d8af6a8, checked in by laurent@…, 2 years ago

add missing -DISL_DLLENTRY

File size: 1.4 KB
Line 
1project(verona)
2
3cmake_minimum_required(VERSION 2.6)
4
5set(VERONA_VERSION_MAJOR 0)
6set(VERONA_VERSION_MINOR 1)
7set(VERONA_VERSION_MICRO 0)
8set(VERONA_VERSION_STRING "0.1.0")
9
10set(CMAKE_MODULE_PATH
11  ${CMAKE_SOURCE_DIR}
12  ${CMAKE_SOURCE_DIR}/cmake/Modules
13)
14
15include(DefineCompilerFlags)
16include(CPackConfig)
17include(Macros)
18include(FindMercurial)
19
20set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
21set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/archive)
22set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
23
24message("Building for ${CMAKE_SYSTEM_NAME}")
25if (CMAKE_SYSTEM_NAME MATCHES Linux)
26 set(LINUX True)
27endif(CMAKE_SYSTEM_NAME MATCHES Linux)
28
29if(CMAKE_UNDER_CE)
30  subdirs(wcecompat)
31endif(CMAKE_UNDER_CE)
32
33if(IPHONE OR CMAKE_UNDER_CE)
34        subdirs(openssl)
35endif(IPHONE OR CMAKE_UNDER_CE)
36
37if(WIN32)
38  subdirs(phapi/msdirent)
39endif(WIN32)
40if(NOT WIN32)
41  set(CMAKE_DEBUG_POSTFIX g)
42endif(NOT WIN32)
43
44subdirs(libs/miniini)
45
46if(USE_CSL)
47  if(WIN32)
48    add_definitions(-DISL_DLLENTRY=__declspec\(dllimport\))
49  else(WIN32)
50     add_definitions(-DISL_DLLENTRY=)
51  endif(WIN32)
52if(ANDROID OR IPHONE OR CMAKE_UNDER_CE)
53  subdirs(libs/srtp)
54endif(ANDROID OR IPHONE OR CMAKE_UNDER_CE)
55  subdirs(libs/hlibpp csl)
56ENDIF(USE_CSL)
57
58subdirs(libs/codecs/gsm libs/codecs/speex libosip2 libeXosip2 oRTP mediastreamer2 phapi phcpp phtest)
59
60if(NOT IPHONE)
61        subdirs(swig)
62endif(NOT IPHONE)
63
64
65if(CMAKE_UNDER_CE)
66  subdirs(csharp)
67endif(CMAKE_UNDER_CE)
Note: See TracBrowser for help on using the repository browser.