summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
blob: 6638a38ad7f46bb16cf41ab363177dc32dd33329 (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
cmake_minimum_required(VERSION 2.6)
project(accel_sim_processor CXX)

# to install pkgconfig setup file.
SET(EXEC_PREFIX "\${prefix}")
SET(LIBDIR "\${prefix}/lib")
SET(INCLUDEDIR "\${prefix}/include")
SET(VERSION 1.0)

include(FindPkgConfig)
pkg_check_modules(rpkgs REQUIRED vconf sf_common)
add_definitions(${rpkgs_CFLAGS} -DUSE_ONLY_ONE_MODULE)

set(PROJECT_MAJOR_VERSION "0")
set(PROJECT_MINOR_VERSION "2")
set(PROJECT_RELEASE_VERSION "1")
set(CMAKE_VERBOSE_MAKEFILE OFF)

ADD_DEFINITIONS("-DTARGET")

add_definitions(-Wall -O3 -omit-frame-pointer)
#add_definitions(-Wall -g -D_DEBUG)
add_definitions(-Iinclude)

add_library(${PROJECT_NAME} SHARED
	src/accel_sim_processor.cpp
)

target_link_libraries(${PROJECT_NAME} ${rpkgs_LDFLAGS} ${GLES_LDFLAGS} "-lm")


install(TARGETS ${PROJECT_NAME} DESTINATION lib/sensor_framework)