2 # Copyright (C) 2012-2014 Icinga Development Team (http://www.icinga.org)
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.
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.
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.
18 mkclass_target(dbconnection.ti dbconnection.thpp)
20 mkembedconfig_target(db_ido-type.conf db_ido-type.cpp)
23 commanddbobject.cpp dbconnection.cpp dbconnection.thpp dbconnection.thpp
24 db_ido-type.cpp dbevents.cpp dbobject.cpp dbquery.cpp dbreference.cpp dbtype.cpp
25 dbvalue.cpp endpointdbobject.cpp hostdbobject.cpp hostgroupdbobject.cpp
26 servicedbobject.cpp servicegroupdbobject.cpp timeperioddbobject.cpp
27 userdbobject.cpp usergroupdbobject.cpp
30 if(ICINGA2_UNITY_BUILD)
31 mkunity_target(db_ido db_ido_SOURCES)
34 add_library(db_ido SHARED ${db_ido_SOURCES})
36 include_directories(${Boost_INCLUDE_DIRS})
37 target_link_libraries(db_ido ${Boost_LIBRARIES} base config icinga remote)
39 set_target_properties (
41 INSTALL_RPATH ${CMAKE_INSTALL_FULL_LIBDIR}/icinga2
42 DEFINE_SYMBOL I2_DB_IDO_BUILD
48 RUNTIME DESTINATION ${CMAKE_INSTALL_SBINDIR}
49 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/icinga2