]> granicus.if.org Git - icinga2/blob - lib/mysql_shim/CMakeLists.txt
Replace Copyright header with a short version, part II
[icinga2] / lib / mysql_shim / CMakeLists.txt
1 # Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+
2
3 include_directories(${MYSQL_INCLUDE_DIR})
4
5 set(mysql_shim_SOURCES
6   mysql_shim.def
7   mysqlinterface.cpp mysqlinterface.hpp
8 )
9
10 if(ICINGA2_UNITY_BUILD)
11   mkunity_target(mysql_shim mysql_shim mysql_shim_SOURCES)
12 endif()
13
14 add_library(mysql_shim SHARED ${mysql_shim_SOURCES})
15
16 include(GenerateExportHeader)
17 generate_export_header(mysql_shim)
18
19 target_link_libraries(mysql_shim ${MYSQL_LIB})
20
21 set_target_properties (
22   mysql_shim PROPERTIES
23   FOLDER Lib
24   VERSION ${SPEC_VERSION}
25 )
26
27 install(
28   TARGETS mysql_shim
29   RUNTIME DESTINATION ${CMAKE_INSTALL_SBINDIR}
30   LIBRARY DESTINATION ${CMAKE_INSTALL_FULL_LIBDIR}/icinga2
31 )