~ubuntu-branches/ubuntu/utopic/libmsn/utopic

« back to all changes in this revision

Viewing changes to CMakeLists.txt

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2008-12-10 20:20:14 UTC
  • Revision ID: james.westby@ubuntu.com-20081210202014-bqgd3j5qn04ro9xr
Tags: upstream-4.0~beta1svn77
ImportĀ upstreamĀ versionĀ 4.0~beta1svn77

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
 
2
project(libmsn)
 
3
 
 
4
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules ${CMAKE_MODULE_PATH})
 
5
# find directories for openssl
 
6
find_package(OpenSSL REQUIRED)
 
7
 
 
8
set (LIB_SUFFIX "" CACHE STRING "Define suffix of directory name (32/64)" )
 
9
 
 
10
include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${OPENSSL_INCLUDE_DIR})
 
11
add_subdirectory(msn)
 
12
add_subdirectory(msntest)
 
13
 
 
14
if(NOT WIN32)
 
15
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/libmsn.pc.cmake
 
16
               ${CMAKE_CURRENT_BINARY_DIR}/libmsn.pc
 
17
               @ONLY )
 
18
 
 
19
install( FILES ${CMAKE_CURRENT_BINARY_DIR}/libmsn.pc
 
20
         DESTINATION ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}/pkgconfig
 
21
         COMPONENT Devel )
 
22
endif(NOT WIN32)