Browse Source

* move sampler code

master
Alex 'AdUser' Z 8 years ago
parent
commit
0cc41e6805
  1. 3
      src/CMakeLists.txt
  2. 8
      src/samplers/magick.c

3
src/CMakeLists.txt

@ -1,4 +1,5 @@
set(LIB_SOURCES "database.c" "bitmap.c") set(LIB_SOURCES "database.c" "bitmap.c")
set(SAMPLER "magick") # TODO: GD2
add_library("simdb" SHARED ${LIB_SOURCES}) add_library("simdb" SHARED ${LIB_SOURCES})
set_property(TARGET "simdb" PROPERTY SONAME ${VERSION}) set_property(TARGET "simdb" PROPERTY SONAME ${VERSION})
@ -14,7 +15,7 @@ if (WITH_TOOLS)
find_package(ImageMagick COMPONENTS MagickCore MagickWand) 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" "simdb")
target_link_libraries("simdb-write" ${ImageMagick_MagickCore_LIBRARY}) target_link_libraries("simdb-write" ${ImageMagick_MagickCore_LIBRARY})
target_link_libraries("simdb-write" ${ImageMagick_MagickWand_LIBRARY}) target_link_libraries("simdb-write" ${ImageMagick_MagickWand_LIBRARY})

8
src/sample.c → src/samplers/magick.c

@ -1,7 +1,7 @@
#include "common.h" #include "../common.h"
#include "bitmap.h" #include "../bitmap.h"
#include "simdb.h" #include "../simdb.h"
#include "record.h" #include "../record.h"
#include <wand/magick_wand.h> #include <wand/magick_wand.h>
Loading…
Cancel
Save