diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 7 |
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 |