]> Dogcows Code - chaz/yoink/blob - src/Moof/yajl/verify/CMakeLists.txt
converted json sequences to lua
[chaz/yoink] / src / Moof / yajl / verify / CMakeLists.txt
1 # Copyright 2007-2009, Lloyd Hilaiel.
2 #
3 # Redistribution and use in source and binary forms, with or without
4 # modification, are permitted provided that the following conditions are
5 # met:
6 #
7 # 1. Redistributions of source code must retain the above copyright
8 # notice, this list of conditions and the following disclaimer.
9 #
10 # 2. Redistributions in binary form must reproduce the above copyright
11 # notice, this list of conditions and the following disclaimer in
12 # the documentation and/or other materials provided with the
13 # distribution.
14 #
15 # 3. Neither the name of Lloyd Hilaiel nor the names of its
16 # contributors may be used to endorse or promote products derived
17 # from this software without specific prior written permission.
18 #
19 # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
20 # IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
21 # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22 # DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
23 # INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
24 # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
25 # SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26 # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
27 # STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
28 # IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29 # POSSIBILITY OF SUCH DAMAGE.
30
31 # set up some paths
32 SET (binDir ${CMAKE_CURRENT_BINARY_DIR}/../${YAJL_DIST_NAME}/bin)
33
34 # create some directories
35 FILE(MAKE_DIRECTORY ${binDir})
36
37 SET (SRCS json_verify.c)
38
39 # use the library we build, duh.
40 INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}/../${YAJL_DIST_NAME}/include)
41 LINK_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}/../${YAJL_DIST_NAME}/lib)
42
43 ADD_EXECUTABLE(json_verify ${SRCS})
44
45 TARGET_LINK_LIBRARIES(json_verify yajl_s)
46
47 # copy in the binary
48 GET_TARGET_PROPERTY(binPath json_verify LOCATION)
49
50 ADD_CUSTOM_COMMAND(TARGET json_verify POST_BUILD
51 COMMAND ${CMAKE_COMMAND} -E copy_if_different ${binPath} ${binDir})
52
53 IF (NOT WIN32)
54 INSTALL(TARGETS json_verify RUNTIME DESTINATION bin)
55 ENDIF ()
This page took 0.030946 seconds and 4 git commands to generate.