]> git.armaanb.net Git - gen-shell.git/blob - src/libshared/src/CMakeLists.txt
added install instructions
[gen-shell.git] / src / libshared / src / CMakeLists.txt
1 cmake_minimum_required (VERSION 2.8)
2 include_directories (${CMAKE_SOURCE_DIR}
3                      ${CMAKE_SOURCE_DIR}/src)
4
5 set (shared_HEADERS Args.h
6                     Color.h
7                     Composite.h
8                     Configuration.h
9                     Datetime.h
10                     Duration.h
11                     FS.h
12                     JSON.h
13                     Lexer.h
14                     Log.h
15                     Msg.h
16                     Packrat.h
17                     Palette.h
18                     PEG.h
19                     Pig.h
20                     RX.h
21                     Table.h
22                     Timer.h
23                     Tree.h
24                     shared.h
25                     format.h
26                     unicode.h
27                     utf8.h)
28
29 set (shared_SRCS Args.cpp
30                  Color.cpp
31                  Composite.cpp
32                  Configuration.cpp
33                  Datetime.cpp
34                  Duration.cpp
35                  FS.cpp
36                  JSON.cpp
37                  Lexer.cpp
38                  Log.cpp
39                  Msg.cpp
40                  Packrat.cpp
41                  Palette.cpp
42                  PEG.cpp
43                  Pig.cpp
44                  RX.cpp
45                  SAX.cpp
46                  Table.cpp
47                  Timer.cpp
48                  Tree.cpp
49                  format.cpp
50                  ip.cpp
51                  shared.cpp
52                  unicode.cpp
53                  utf8.cpp
54                  wcwidth6.cpp
55                  ${shared_HEADERS})
56
57 add_library (shared STATIC ${shared_SRCS})
58
59 set (CMAKE_INSTALL_LIBDIR lib CACHE PATH "Output directory for libraries")
60 install (TARGETS shared DESTINATION lib)
61 install (FILES ${shared_HEADERS} DESTINATION include)
62
63 add_executable (lex_executable lex.cpp)
64 target_link_libraries (lex_executable shared)
65 set_property (TARGET lex_executable PROPERTY OUTPUT_NAME "lex")