2 SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${TEST_CFLAGS}")
4 add_executable(appsvc_test
6 target_link_libraries(appsvc_test appsvc ${pkgs_LDFLAGS})
7 INSTALL(TARGETS appsvc_test DESTINATION bin)
12 #add_library(test_avatar STATIC EXCLUDE_FROM_ALL
14 #target_link_libraries(test_avatar avatar_v2_lib)
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.
23 ## 'test' target in Makefile ##
24 # Run test by 'make test'
25 #add_custom_target(test
28 # WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"