summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@dside.dyndns.org>2012-03-07 22:22:03 +0100
committerSuren A. Chilingaryan <csa@dside.dyndns.org>2012-03-07 22:22:03 +0100
commit252c16bd304a55130f631d31f1aa93a4125664ab (patch)
tree7a4aaa9ef10eb7e7860ac1b4f01cc791fbdbe2b6 /CMakeLists.txt
parent477bb2e61762d6120e38222666e7dc8a2e6c9ea4 (diff)
downloadfwbench-252c16bd304a55130f631d31f1aa93a4125664ab.tar.gz
fwbench-252c16bd304a55130f631d31f1aa93a4125664ab.tar.bz2
fwbench-252c16bd304a55130f631d31f1aa93a4125664ab.tar.xz
fwbench-252c16bd304a55130f631d31f1aa93a4125664ab.zip
Use local data generator until high-speed ufo simulator is provided
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt28
1 files changed, 20 insertions, 8 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d78d9a6..7a24d96 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -2,31 +2,43 @@ project(fwbench)
set(FWBENCH_VERSION "0.0.1")
+set(USE_UFO_GENERATOR FALSE CACHE BOOL "Use UFO Framework Data Generator")
+
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)
+pkg_check_modules(GLIB2 glib-2.0 REQUIRED)
+pkg_check_modules(GTHREAD2 gthread-2.0 REQUIRED)
+if (USE_UFO_GENERATOR)
+ pkg_check_modules(GOBJECT2 gobject-2.0>=2.24 REQUIRED)
+ pkg_check_modules(UFO ufo<=0.2 REQUIRED)
+
+ FIND_PATH(METABALLS_PATH
+ NAMES
+ metaballs.so
+ )
+endif (USE_UFO_GENERATOR)
-FIND_PATH(METABALLS_PATH
- NAMES
- metaballs.so
-)
add_definitions("-fPIC --std=c99 -Wall -O2")
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${GLIB2_INCLUDE_DIRS}
+ ${GTHREAD2_INCLUDE_DIRS}
${UFO_INCLUDE_DIRS}
${FASTWRITER_INCLUDE_DIRS}
)
add_executable(fwbench fwbench.c)
-target_link_libraries(fwbench m ufo fastwriter ${GLIB2_LIBRARIES})
+
+if (USE_UFO_GENERATOR)
+ target_link_libraries(fwbench m ufo fastwriter ${GLIB2_LIBRARIES} ${GTHREAD2_LIBRARIES})
+else (USE_UFO_GENERATOR)
+ target_link_libraries(fwbench m fastwriter ${GLIB2_LIBRARIES} ${GTHREAD2_LIBRARIES})
+endif (USE_UFO_GENERATOR)
configure_file(config.h.in ${CMAKE_CURRENT_BINARY_DIR}/config.h)