this repo has no description
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
18set(API api/test.c)
19set(WITEM_CACHE witem_cache/test.c)
20set(LATENCY latency/latency.c latency/latency.h)
21
22
23#includes
24include_directories(
25 ../include
26)
27
28if(UNIX)
29 add_definitions(
30 -DNO_CONFIG_H
31 )
32endif()
33
34add_executable(test_api_pthread_workqueue ${API})
35target_link_libraries(test_api_pthread_workqueue pthread_workqueue)
36set_target_properties(test_api_pthread_workqueue PROPERTIES DEBUG_POSTFIX "D")
37
38add_executable(test_latency_pthread_workqueue ${LATENCY})
39target_link_libraries(test_latency_pthread_workqueue pthread_workqueue)
40
41if(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
46endif()