summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@dside.dyndns.org>2012-03-07 17:46:56 +0100
committerSuren A. Chilingaryan <csa@dside.dyndns.org>2012-03-07 17:46:56 +0100
commit477bb2e61762d6120e38222666e7dc8a2e6c9ea4 (patch)
tree49943a1b0817cf2740add6be028c09a64c9e867e /CMakeLists.txt
downloadfwbench-477bb2e61762d6120e38222666e7dc8a2e6c9ea4.tar.gz
fwbench-477bb2e61762d6120e38222666e7dc8a2e6c9ea4.tar.bz2
fwbench-477bb2e61762d6120e38222666e7dc8a2e6c9ea4.tar.xz
fwbench-477bb2e61762d6120e38222666e7dc8a2e6c9ea4.zip
Initial release
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt32
1 files changed, 32 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 0000000..d78d9a6
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,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)