RSS

(root)/alps/fwbench : /CMakeLists.txt (revision 19)

To get this branch, use:
bzr branch /webbzr/alps/fwbench
Line Revision Contents
1 1
project(fwbench)
2
3
set(FWBENCH_VERSION "0.0.1")
4
5 2
set(USE_UFO_GENERATOR FALSE CACHE BOOL "Use UFO Framework Data Generator")
6
7 1
cmake_minimum_required(VERSION 2.8)
8
9
find_package(PkgConfig REQUIRED)
10
11
pkg_check_modules(FASTWRITER fastwriter REQUIRED)
12 2
pkg_check_modules(GLIB2 glib-2.0 REQUIRED)
13
pkg_check_modules(GTHREAD2 gthread-2.0 REQUIRED)
14
15
if (USE_UFO_GENERATOR)
16
    pkg_check_modules(GOBJECT2 gobject-2.0>=2.24 REQUIRED)
17
    pkg_check_modules(UFO ufo<=0.2 REQUIRED)
18
19
    FIND_PATH(METABALLS_PATH
20
	NAMES 
21
	    metaballs.so
22
    )
23
endif (USE_UFO_GENERATOR)
24
25 1
26
add_definitions("-fPIC --std=c99 -Wall -O2")
27
28
include_directories(
29
    ${CMAKE_CURRENT_BINARY_DIR}
30
    ${GLIB2_INCLUDE_DIRS}
31 2
    ${GTHREAD2_INCLUDE_DIRS}
32 1
    ${UFO_INCLUDE_DIRS}
33
    ${FASTWRITER_INCLUDE_DIRS}
34
)
35
36
add_executable(fwbench fwbench.c)
37 8
add_executable(seqreader seqreader.c)
38 18
add_executable(rndreader rndreader.c)
39 2
40
if (USE_UFO_GENERATOR)
41
    target_link_libraries(fwbench m ufo fastwriter ${GLIB2_LIBRARIES} ${GTHREAD2_LIBRARIES})
42
else (USE_UFO_GENERATOR)
43
    target_link_libraries(fwbench m fastwriter ${GLIB2_LIBRARIES} ${GTHREAD2_LIBRARIES})
44
endif (USE_UFO_GENERATOR)
45 1
46 13
target_link_libraries(seqreader aio)
47 18
target_link_libraries(rndreader aio)
48 13
49 1
configure_file(config.h.in ${CMAKE_CURRENT_BINARY_DIR}/config.h)

Loggerhead 1.18.1 is a web-based interface for Bazaar branches