|
|
|
@ -7,10 +7,11 @@ cmake_minimum_required(VERSION 2.6)
|
|
|
|
|
|
|
|
|
|
include(CTest) |
|
|
|
|
include(GNUInstallDirs) |
|
|
|
|
include(FindPkgConfig) |
|
|
|
|
|
|
|
|
|
option(WITH_HARDENING "Enable hardening options" ON) |
|
|
|
|
option(WITH_TOOLS "Build library management tools" ON) |
|
|
|
|
set(SIMDB_SAMPLER "magick" CACHE STRING "Library for sampling") |
|
|
|
|
set(SIMDB_SAMPLER "graphicsmagick" CACHE STRING "Library for sampling") |
|
|
|
|
|
|
|
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -pedantic -std=c99") |
|
|
|
|
add_definitions("-D_XOPEN_SOURCE=500") |
|
|
|
@ -25,8 +26,10 @@ if (${SIMDB_SAMPLER} STREQUAL "dummy")
|
|
|
|
|
set(SIMDB_SAMPLER "dummy") |
|
|
|
|
elseif (${SIMDB_SAMPLER} STREQUAL "random") |
|
|
|
|
set(SIMDB_SAMPLER "random") |
|
|
|
|
else () |
|
|
|
|
set(SIMDB_SAMPLER "magick") |
|
|
|
|
elseif (${SIMDB_SAMPLER} STREQUAL "graphicsmagick") |
|
|
|
|
set(SIMDB_SAMPLER "graphicsmagick") |
|
|
|
|
elseif (${SIMDB_SAMPLER} STREQUAL "imagemagick") |
|
|
|
|
set(SIMDB_SAMPLER "imagemagick") |
|
|
|
|
endif () |
|
|
|
|
|
|
|
|
|
message(STATUS "Project : ${CNAME} v${VERSION}") |
|
|
|
|