blob: d78d9a67322913634ea2781a0be010cd9fdc1f5b (
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
27
28
29
30
31
32
|
project(fwbench)
set(FWBENCH_VERSION "0.0.1")
cmake_minimum_required(VERSION 2.8)
find_package(PkgConfig REQUIRED)
pkg_check_modules(GLIB2 glib-2.0>=2.24 REQUIRED)
pkg_check_modules(GOBJECT2 gobject-2.0>=2.24 REQUIRED)
pkg_check_modules(UFO ufo<=0.2 REQUIRED)
pkg_check_modules(FASTWRITER fastwriter REQUIRED)
FIND_PATH(METABALLS_PATH
NAMES
metaballs.so
)
add_definitions("-fPIC --std=c99 -Wall -O2")
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${GLIB2_INCLUDE_DIRS}
${UFO_INCLUDE_DIRS}
${FASTWRITER_INCLUDE_DIRS}
)
add_executable(fwbench fwbench.c)
target_link_libraries(fwbench m ufo fastwriter ${GLIB2_LIBRARIES})
configure_file(config.h.in ${CMAKE_CURRENT_BINARY_DIR}/config.h)
|