3 SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${TEST_CFLAGS}")
5 add_executable(aul_test
7 target_link_libraries(aul_test aul ${pkgs_LDFLAGS})
8 INSTALL(TARGETS aul_test DESTINATION bin)
10 add_executable(launch_app
12 target_link_libraries(launch_app aul ${pkgs_LDFLAGS})
13 INSTALL(TARGETS launch_app DESTINATION bin)
15 add_executable(dbusapp_test
17 target_link_libraries(dbusapp_test aul ${pkgs_LDFLAGS})
19 add_executable(aul_dbus
21 target_link_libraries(aul_dbus aul ${pkgs_LDFLAGS})
23 add_executable(test_app
25 set_target_properties(test_app PROPERTIES COMPILE_FLAGS "-fpie")
26 target_link_libraries(test_app "-pie" aul ${pkgs_LDFLAGS} )
32 #add_library(test_avatar STATIC EXCLUDE_FROM_ALL
34 #target_link_libraries(test_avatar avatar_v2_lib)
36 ## Main test function ##
37 #add_executable(test_all EXCLUDE_FROM_ALL test.c)
38 #target_link_libraries(test_all test_avatar)
39 #set_target_properties(test_all
40 # PROPERTIES SKIP_BUILD_RPATH true
41 # ) # remove rpath option that is automatically generated by cmake.
43 ## 'test' target in Makefile ##
44 # Run test by 'make test'
45 #add_custom_target(test
48 # WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"