Fixes
[opsoft.git] / silentbob / CMakeLists_linux.txt
blob20b984e3e191cb6ebbb45ac769bb6c3594c1e434
1 cmake_minimum_required (VERSION 2.6)
2 project ("Silent Bob")
3 include_directories ("include", "gclib/include")
4 link_directories ("./")
5 set (LINK_FLAGS, "-L./ -lsblib")
6 add_library (sblib SHARED gclib/src/darray.cxx
7                         gclib/src/deprecated_dsplit.cxx
8                         gclib/src/dhash.cxx
9                         gclib/src/dheapsort.cxx
10                         gclib/src/djobs.cxx
11                         gclib/src/dlist.cxx
12                         gclib/src/dsplit.cxx
13                         gclib/src/earray.cxx
14                         gclib/src/ehash.cxx
15                         gclib/src/elist.cxx
16                         gclib/src/fs.cxx
17                         gclib/src/gclib.cxx
18                         gclib/src/gclib_c.cxx
19                         sblib/py_tt.cxx
20                         sblib/Sblib.cxx
21                         sblib/the_fly.cxx
22                         sblib/the_tt.cxx
23                         sblib/t_op2.cxx
24                         sblib/t_op.cxx
25                         sblib/TT.cxx
26                         sblib/wit.cxx )
28 link_libraries (sblib dl)
29 add_executable (silent_bob src/callTags.cxx
30                         src/cFiles.cxx
31                         src/cgrep.cxx
32                         src/ctags.cxx
33                         src/file.cxx
34                         src/indent.cxx
35                         src/init.cxx
36                         src/interactive.cxx
37                         src/kinds.cxx
38                         src/main.cxx
39                         src/modding.cxx
40                         src/opts_funcs.cxx
41                         src/opts_kinds.cxx
42                         src/opts_list.cxx
43                         src/opts_settings.cxx
44                         src/structs.cxx
45                         src/tree.cxx
46                         src/usage.cxx )
48 add_dependencies (silent_bob sblib)
50 add_library (plugin_cache SHARED plugins/plugin_cache.cxx)
51 add_library (plugin_editor SHARED plugins/plugin_editor.cxx)
52 add_library (plugin_grep SHARED plugins/plugin_grep.cxx)
53 add_library (plugin_perl SHARED plugins/plugin_perl.cxx)
54 add_library (plugin_perlpackages SHARED plugins/plugin_perlpackages.cxx)
55 add_library (plugin_python SHARED plugins/plugin_python.cxx)
56 add_library (plugin_ruby SHARED plugins/plugin_ruby.cxx)
57 add_library (plugin_ruby_newclass SHARED plugins/plugin_ruby_newclass.cxx)
58 add_library (plugin_ruby_kinds SHARED plugins/plugin_ruby_kinds.cxx)
60 install (TARGETS sblib silent_bob RUNTIME DESTINATION bin 
61                                   LIBRARY DESTINATION lib )