fe249f4e962e19b2472b7bf8e94d19007fe57bbc
[framework/appfw/aul-1.git] / test / CMakeLists.txt
1 # Test executables
2 SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${TEST_CFLAGS}")
3
4 add_executable(aul_test
5                 aul_test.c) 
6 target_link_libraries(aul_test aul ${pkgs_LDFLAGS})
7 INSTALL(TARGETS aul_test DESTINATION bin)
8
9 add_executable(launch_app
10                 launch_app.c) 
11 target_link_libraries(launch_app aul ${pkgs_LDFLAGS})
12 INSTALL(TARGETS launch_app DESTINATION bin)
13
14 add_executable(dbusapp_test
15                 dbusapp_test.c) 
16 target_link_libraries(dbusapp_test aul ${pkgs_LDFLAGS})
17
18 add_executable(aul_dbus
19                 aul_dbus.c) 
20 target_link_libraries(aul_dbus aul ${pkgs_LDFLAGS})
21
22 add_executable(test_app
23                 app_test.c)
24 set_target_properties(test_app PROPERTIES COMPILE_FLAGS "-fpie")
25 target_link_libraries(test_app "-pie" aul ${pkgs_LDFLAGS} )
26
27 add_executable(ac_daemon
28                 ac_daemon.c)
29 target_link_libraries(ac_daemon app-checker-server glib-2.0 ${pkgs_LDFLAGS})
30 INSTALL(TARGETS ac_daemon DESTINATION bin)
31
32
33
34 ### Unit tests ###
35 ## avatar test ##
36 #add_library(test_avatar STATIC EXCLUDE_FROM_ALL
37 #       test_avatar.c)
38 #target_link_libraries(test_avatar avatar_v2_lib)
39
40 ## Main test function ##
41 #add_executable(test_all EXCLUDE_FROM_ALL test.c)
42 #target_link_libraries(test_all test_avatar)
43 #set_target_properties(test_all
44 #               PROPERTIES SKIP_BUILD_RPATH true
45 #               ) # remove rpath option that is automatically generated by cmake.
46
47 ## 'test' target in Makefile ##
48 # Run test by 'make test'
49 #add_custom_target(test
50 #       COMMAND ./test_all
51 #       DEPENDS test_all
52 #       WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
53 #       COMMENT ""
54 #       )