]> git.cworth.org Git - apitrace/blob - thirdparty/less/CMakeLists.txt
cli: Fix script search for out of source build.
[apitrace] / thirdparty / less / CMakeLists.txt
1 add_definitions (-DNDEBUG)
2 if (WIN32)
3     add_definitions (-DWIN32 -D_CONSOLE)
4     configure_file (defines.wn ${CMAKE_CURRENT_BINARY_DIR}/defines.h COPYONLY)
5 else ()
6     # XXX unsupported
7 endif ()
8
9 if (MSVC)
10     add_definitions (-wd4131) # uses old-style declarator
11 endif ()
12
13 include_directories (${CMAKE_CURRENT_BINARY_DIR})
14
15 add_executable (less
16         main.c screen.c brac.c ch.c charset.c cmdbuf.c
17         command.c cvt.c decode.c edit.c filename.c forwback.c
18         help.c ifile.c input.c jump.c line.c linenum.c
19         lsystem.c mark.c optfunc.c option.c opttbl.c os.c
20         output.c pattern.c position.c prompt.c search.c signal.c
21         tags.c ttyin.c version.c regexp.c
22 )
23
24 add_executable (lesskey lesskey version)
25 add_executable (lessecho lessecho version)
26
27 install (
28     TARGETS less lesskey lessecho
29     RUNTIME DESTINATION bin
30 )
31
32 install (
33     FILES LICENSE
34     DESTINATION ${DOC_INSTALL_DIR}
35     RENAME LICENSE-less.txt
36 )