]> granicus.if.org Git - icinga2/blob - lib/db_ido/CMakeLists.txt
Fix Zone::IsGlobal()
[icinga2] / lib / db_ido / CMakeLists.txt
1 # Icinga 2
2 # Copyright (C) 2012-2014 Icinga Development Team (http://www.icinga.org)
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 mkclass_target(dbconnection.ti dbconnection.thpp)
19
20 mkembedconfig_target(db_ido-type.conf db_ido-type.cpp)
21
22 set(db_ido_SOURCES
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
28 )
29
30 if(ICINGA2_UNITY_BUILD)
31     mkunity_target(db_ido db_ido_SOURCES)
32 endif()
33
34 add_library(db_ido SHARED ${db_ido_SOURCES})
35
36 include_directories(${Boost_INCLUDE_DIRS})
37 target_link_libraries(db_ido ${Boost_LIBRARIES} base config icinga remote)
38
39 set_target_properties (
40   db_ido PROPERTIES
41   INSTALL_RPATH ${CMAKE_INSTALL_FULL_LIBDIR}/icinga2
42   DEFINE_SYMBOL I2_DB_IDO_BUILD
43   FOLDER Lib
44 )
45
46 install(
47   TARGETS db_ido
48   RUNTIME DESTINATION ${CMAKE_INSTALL_SBINDIR}
49   LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/icinga2
50 )