summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@dside.dyndns.org>2011-12-14 18:13:06 +0100
committerSuren A. Chilingaryan <csa@dside.dyndns.org>2011-12-14 18:13:06 +0100
commit59fc684596b21cca65636649144c1a0932a4dfd6 (patch)
tree2a407f1f0a925b3e572c8712003556152c457b73
parente99ffb4b0b09d883666e621eba0bb41ac4233d9f (diff)
downloadfastwriter-59fc684596b21cca65636649144c1a0932a4dfd6.tar.gz
fastwriter-59fc684596b21cca65636649144c1a0932a4dfd6.tar.bz2
fastwriter-59fc684596b21cca65636649144c1a0932a4dfd6.tar.xz
fastwriter-59fc684596b21cca65636649144c1a0932a4dfd6.zip
Adjust cmake scripts
-rw-r--r--CMakeLists.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 699790f..94d1ad8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -9,9 +9,14 @@ cmake_minimum_required(VERSION 2.8)
include(CheckIncludeFiles)
check_include_files("linux/falloc.h" HAVE_LINUX_FALLOC_H)
-set(HEADERS fastwriter.h)
+include_directories(
+ ${CMAKE_SOURCE_DIR}/src
+ ${CMAKE_CURRENT_BINARY_DIR}
+)
+
add_definitions("-fPIC --std=c99 -Wall -O2 -pthread")
+set(HEADERS fastwriter.h sysinfo.h default.h private.h)
add_library(fastwriter SHARED fastwriter.c sysinfo.c default.c)
set_target_properties(fastwriter PROPERTIES