update for beta universally
[platform/core/appfw/app-svc.git] / test / CMakeLists.txt
1 # Test executables
2 SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${TEST_CFLAGS}")
3
4 add_executable(appsvc_test
5                 appsvc_test.c) 
6 target_link_libraries(appsvc_test appsvc ${pkgs_LDFLAGS})
7 INSTALL(TARGETS appsvc_test DESTINATION bin)
8
9
10 ### Unit tests ###
11 ## avatar test ##
12 #add_library(test_avatar STATIC EXCLUDE_FROM_ALL
13 #       test_avatar.c)
14 #target_link_libraries(test_avatar avatar_v2_lib)
15
16 ## Main test function ##
17 #add_executable(test_all EXCLUDE_FROM_ALL test.c)
18 #target_link_libraries(test_all test_avatar)
19 #set_target_properties(test_all
20 #               PROPERTIES SKIP_BUILD_RPATH true
21 #               ) # remove rpath option that is automatically generated by cmake.
22
23 ## 'test' target in Makefile ##
24 # Run test by 'make test'
25 #add_custom_target(test
26 #       COMMAND ./test_all
27 #       DEPENDS test_all
28 #       WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
29 #       COMMENT ""
30 #       )