From 0cc41e68052e6a32d465158f24e5d8d47ae84eb5 Mon Sep 17 00:00:00 2001 From: Alex 'AdUser' Z Date: Fri, 30 Dec 2016 12:18:26 +1000 Subject: [PATCH] * move sampler code --- src/CMakeLists.txt | 3 ++- src/{sample.c => samplers/magick.c} | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) rename src/{sample.c => samplers/magick.c} (96%) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index ebc9d3c..e5a2f66 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,4 +1,5 @@ set(LIB_SOURCES "database.c" "bitmap.c") +set(SAMPLER "magick") # TODO: GD2 add_library("simdb" SHARED ${LIB_SOURCES}) set_property(TARGET "simdb" PROPERTY SONAME ${VERSION}) @@ -14,7 +15,7 @@ if (WITH_TOOLS) find_package(ImageMagick COMPONENTS MagickCore MagickWand) - add_executable("simdb-write" "simdb-write.c" "sample.c") + add_executable("simdb-write" "simdb-write.c" "samplers/${SAMPLER}.c") target_link_libraries("simdb-write" "simdb") target_link_libraries("simdb-write" ${ImageMagick_MagickCore_LIBRARY}) target_link_libraries("simdb-write" ${ImageMagick_MagickWand_LIBRARY}) diff --git a/src/sample.c b/src/samplers/magick.c similarity index 96% rename from src/sample.c rename to src/samplers/magick.c index c9e20a5..f0bc10a 100644 --- a/src/sample.c +++ b/src/samplers/magick.c @@ -1,7 +1,7 @@ -#include "common.h" -#include "bitmap.h" -#include "simdb.h" -#include "record.h" +#include "../common.h" +#include "../bitmap.h" +#include "../simdb.h" +#include "../record.h" #include