/alps/fwbench

To get this branch, use:
bzr branch http://darksoft.org/webbzr/alps/fwbench

« back to all changes in this revision

Viewing changes to CMakeLists.txt

  • Committer: Suren A. Chilingaryan
  • Date: 2012-03-07 16:46:56 UTC
  • Revision ID: csa@dside.dyndns.org-20120307164656-q2qhdvbyy979pijm
Initial release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
project(fwbench)
 
2
 
 
3
set(FWBENCH_VERSION "0.0.1")
 
4
 
 
5
cmake_minimum_required(VERSION 2.8)
 
6
 
 
7
find_package(PkgConfig REQUIRED)
 
8
 
 
9
pkg_check_modules(GLIB2 glib-2.0>=2.24 REQUIRED)
 
10
pkg_check_modules(GOBJECT2 gobject-2.0>=2.24 REQUIRED)
 
11
pkg_check_modules(UFO ufo<=0.2 REQUIRED)
 
12
pkg_check_modules(FASTWRITER fastwriter REQUIRED)
 
13
 
 
14
 
 
15
FIND_PATH(METABALLS_PATH
 
16
  NAMES 
 
17
    metaballs.so
 
18
)
 
19
 
 
20
add_definitions("-fPIC --std=c99 -Wall -O2")
 
21
 
 
22
include_directories(
 
23
    ${CMAKE_CURRENT_BINARY_DIR}
 
24
    ${GLIB2_INCLUDE_DIRS}
 
25
    ${UFO_INCLUDE_DIRS}
 
26
    ${FASTWRITER_INCLUDE_DIRS}
 
27
)
 
28
 
 
29
add_executable(fwbench fwbench.c)
 
30
target_link_libraries(fwbench m ufo fastwriter ${GLIB2_LIBRARIES})
 
31
 
 
32
configure_file(config.h.in ${CMAKE_CURRENT_BINARY_DIR}/config.h)