~sil/u1db/http-all-docs

« back to all changes in this revision

Viewing changes to src/CMakeLists.txt

  • Committer: Tarmac
  • Author(s): Rodney Dawes
  • Date: 2012-08-14 21:25:11 UTC
  • mfrom: (377.1.2 pkg-fixings)
  • Revision ID: tarmac-20120814212511-4lj1smwucf81z3q5
Fix license header in c_backend_wrapper.pyx
Set default CFLAGS so we get a debug build, and fail on compiler warnings
Only install the u1db.h file as a public include file
Fix some compiler warnings

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
cmake_minimum_required (VERSION 2.6)
2
2
project (u1db)
3
3
 
 
4
# Some default CFLAGS
 
5
SET (CMAKE_C_FLAGS "-O2 -g -Wall -Werror")
 
6
 
4
7
# Allow specifying the libdir to use for the C library
5
8
SET (LIB_SUFFIX "" CACHE STRING "Define suffix of library directory name.")
6
9
SET (LIB_INSTALL_DIR "lib${LIB_SUFFIX}")
34
37
)
35
38
 
36
39
install(DIRECTORY ${CMAKE_SOURCE_DIR}/include/u1db DESTINATION include
37
 
    FILES_MATCHING PATTERN "*.h"
 
40
    FILES_MATCHING PATTERN "u1db.h"
38
41
)