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)