]> granicus.if.org Git - icinga2/blob - lib/cli/CMakeLists.txt
1fac5a474399b438dfb9e2b906e52ceca92075bb
[icinga2] / lib / cli / CMakeLists.txt
1 # Icinga 2
2 # Copyright (C) 2012-2018 Icinga Development Team (https://icinga.com/)
3 #
4 # This program is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU General Public License
6 # as published by the Free Software Foundation; either version 2
7 # of the License, or (at your option) any later version.
8 #
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
13 #
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software Foundation
16 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
17
18 set(cli_SOURCES
19   i2-cli.hpp
20   apisetupcommand.cpp apisetupcommand.hpp
21   apisetuputility.cpp apisetuputility.hpp
22   calistcommand.cpp calistcommand.hpp
23   casigncommand.cpp casigncommand.hpp
24   clicommand.cpp clicommand.hpp
25   consolecommand.cpp consolecommand.hpp
26   daemoncommand.cpp daemoncommand.hpp
27   daemonutility.cpp daemonutility.hpp
28   editline.hpp
29   featuredisablecommand.cpp featuredisablecommand.hpp
30   featureenablecommand.cpp featureenablecommand.hpp
31   featurelistcommand.cpp featurelistcommand.hpp
32   featureutility.cpp featureutility.hpp
33   internalsignalcommand.cpp internalsignalcommand.hpp
34   nodesetupcommand.cpp nodesetupcommand.hpp
35   nodeutility.cpp nodeutility.hpp
36   nodewizardcommand.cpp nodewizardcommand.hpp
37   objectlistcommand.cpp objectlistcommand.hpp
38   objectlistutility.cpp objectlistutility.hpp
39   pkinewcacommand.cpp pkinewcacommand.hpp
40   pkinewcertcommand.cpp pkinewcertcommand.hpp
41   pkirequestcommand.cpp pkirequestcommand.hpp
42   pkisavecertcommand.cpp pkisavecertcommand.hpp
43   pkisigncsrcommand.cpp pkisigncsrcommand.hpp
44   pkiticketcommand.cpp pkiticketcommand.hpp
45   troubleshootcommand.cpp troubleshootcommand.hpp
46   variablegetcommand.cpp variablegetcommand.hpp
47   variablelistcommand.cpp variablelistcommand.hpp
48   variableutility.cpp variableutility.hpp
49 )
50
51 if(ICINGA2_UNITY_BUILD)
52   mkunity_target(cli cli cli_SOURCES)
53 endif()
54
55 add_library(cli OBJECT ${cli_SOURCES})
56
57 add_dependencies(cli base config remote)
58
59 set_target_properties (
60   cli PROPERTIES
61   FOLDER Lib
62 )