summaryrefslogtreecommitdiff
path: root/3rdParty/captcha/CMakeLists.txt
blob: 4e59b19b17cbf0c722ded0211e33c28e67f04746 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
cmake_minimum_required(VERSION 2.6 FATAL_ERROR)

set(libcaptcha_source_files
	captcha.c
	f.h
)

set(unfont_source_files
	unfont.c
)

if(NOT WIN32)
  add_definitions("-fPIC")
endif()

add_custom_command(
    PRE_BUILD
    OUTPUT f.h
    COMMAND ./unfont > f.h
    DEPENDS unfont
)

add_executable(unfont ${unfont_source_files})

add_library(captcha STATIC ${libcaptcha_source_files})