Tizen 2.1 base
[platform/upstream/gcd.git] / pthread_workqueue-0.8.2 / testing / CMakeLists.txt
1 #
2 # Copyright (c) 2011 Marius Zwicker <marius@mlba-team.de>
3 #
4 # Permission to use, copy, modify, and distribute this software for any
5 # purpose with or without fee is hereby granted, provided that the above
6 # copyright notice and this permission notice appear in all copies.
7 #
8 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15 #
16
17 #files
18 set(API api/test.c)
19 set(WITEM_CACHE witem_cache/test.c)
20 set(LATENCY latency/latency.c latency/latency.h)
21
22
23 #includes
24 include_directories(
25         ../include
26 )
27
28 if(UNIX)
29     add_definitions(
30         -DNO_CONFIG_H
31     )
32 endif()
33
34 add_executable(test_api_pthread_workqueue ${API})
35 target_link_libraries(test_api_pthread_workqueue pthread_workqueue)
36 set_target_properties(test_api_pthread_workqueue PROPERTIES DEBUG_POSTFIX "D")
37
38 add_executable(test_latency_pthread_workqueue ${LATENCY})
39 target_link_libraries(test_latency_pthread_workqueue pthread_workqueue)
40
41 if(NOT WIN32)
42
43         #add_executable(test_witem_cache_pthread_workqueue ${WITEM_CACHE})
44         #target_link_libraries(test_witem_cache_pthread_workqueue pthreads_workqueue)
45
46 endif()