CMAKE_MINIMUM_REQUIRED(VERSION 2.6)

PROJECT(sqli_detect)

ADD_SUBDIRECTORY(src)

IF (CMAKE_BUILD_TYPE STREQUAL Debug)
    ADD_DEFINITIONS(-DDEBUG)
ENDIF()

SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g")

# add all src file to variable ROOT_SRC
AUX_SOURCE_DIRECTORY(src ROOT_SRC)
INCLUDE_DIRECTORIES(src/include)

ADD_LIBRARY(sqli_detect STATIC ${ROOT_SRC})
