Mercurial > pub > dyncall > dyncall
comparison buildsys/cmake/Modules/FindDynCall.cmake @ 0:3e629dc19168
initial from svn dyncall-1745
author | Daniel Adler |
---|---|
date | Thu, 19 Mar 2015 22:24:28 +0100 |
parents | |
children | 191aeb9d3bff |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:3e629dc19168 |
---|---|
1 # - Try to find dyncall library | |
2 # | |
3 # The following variables will be defined: | |
4 # | |
5 # DYNCALL_FOUND | |
6 # DYNCALL_INCLUDE_DIRS | |
7 # DYNCALL_LIBRARIES | |
8 # | |
9 # ---------------------------------------------------------------------------- | |
10 # | |
11 # Package: dyncall | |
12 # File: buildsys/cmake/Modules/CMakeLists.txt | |
13 # Description: CMake Module to find DynCall library | |
14 # License: | |
15 # | |
16 # Copyright (c) 2010,2011 Daniel Adler <dadler@uni-goettingen.de> | |
17 # | |
18 # Permission to use, copy, modify, and distribute this software for any | |
19 # purpose with or without fee is hereby granted, provided that the above | |
20 # copyright notice and this permission notice appear in all copies. | |
21 # | |
22 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | |
23 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | |
24 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | |
25 # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | |
26 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | |
27 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | |
28 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | |
29 # | |
30 | |
31 find_path(DYNCALL_INCLUDE_DIR NAMES dyncall.h) | |
32 find_library(DYNCALL_LIBRARY dyncall_s) | |
33 | |
34 include(FindPackageHandleStandardArgs) | |
35 find_package_handle_standard_args(DynCall DEFAULT_MSG DYNCALL_LIBRARY DYNCALL_INCLUDE_DIR) | |
36 | |
37 if(DYNCALL_FOUND) | |
38 set(DYNCALL_INCLUDE_DIRS ${DYNCALL_INCLUDE_DIR}) | |
39 set(DYNCALL_LIBRARIES ${DYNCALL_LIBRARY}) | |
40 endif(DYNCALL_FOUND) | |
41 | |
42 mark_as_advanced(DYNCALL_INCLUDE_DIR DYNCALL_LIBRARY) | |
43 |