1 CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
2 SET(fw_test "${fw_name}-test")
4 #INCLUDE_DIRECTORIES(../include)
5 #link_directories(${CMAKE_SOURCE_DIR}/../)
8 pkg_check_modules(${fw_test} REQUIRED mm-camcorder elementary evas ecore)
9 FOREACH(flag ${${fw_test}_CFLAGS})
10 SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
14 SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fPIC -pie -Wall")
16 aux_source_directory(. sources)
17 FOREACH(src ${sources})
18 GET_FILENAME_COMPONENT(src_name ${src} NAME_WE)
19 MESSAGE("${src_name}")
20 ADD_EXECUTABLE(${src_name} ${src})
21 TARGET_LINK_LIBRARIES(${src_name} ${fw_name} ${${fw_test}_LDFLAGS})
22 INSTALL(TARGETS ${src_name} DESTINATION bin)