SET(INC_DIR "include")
+INCLUDE(FindPkgConfig)
+PKG_CHECK_MODULES(${fw_name} REQUIRED vconf)
+
INSTALL(FILES ${INC_DIR}/tizen.h DESTINATION ${INCLUDE_INSTALL_DIR})
INSTALL(FILES ${INC_DIR}/tizen_type.h DESTINATION ${INCLUDE_INSTALL_DIR})
INSTALL(FILES ${INC_DIR}/tizen_error.h DESTINATION ${INCLUDE_INSTALL_DIR})
INSTALL(FILES ${INC_DIR}/tizen_dotnet.h DESTINATION ${INCLUDE_INSTALL_DIR})
-INCLUDE_DIRECTORIES(${INC_DIR})
+
+INCLUDE_DIRECTORIES(${INC_DIR} ${${fw_name}_INCLUDE_DIRS})
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/capi-base-common.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)
ADD_LIBRARY(${fw_name} SHARED ${SOURCES})
SET_TARGET_PROPERTIES(${fw_name} PROPERTIES VERSION ${FULLVER})
SET_TARGET_PROPERTIES(${fw_name} PROPERTIES SOVERSION 0)
+TARGET_LINK_LIBRARIES(${fw_name} ${${fw_name}_LDFLAGS})
+
INSTALL(TARGETS ${fw_name} DESTINATION ${LIB_INSTALL_DIR})
CONFIGURE_FILE(${fw_name}.pc.in ${fw_name}.pc @ONLY)
ADD_CUSTOM_TARGET (distclean @echo cleaning for source distribution)
ADD_CUSTOM_COMMAND(
- DEPENDS clean
+ DEPENDS clean
COMMENT "distribution clean"
COMMAND find
- ARGS .
+ ARGS .
-not -name config.cmake -and \(
-name tester.c -or
-name Testing -or
License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
-BuildRequires: cmake
+BuildRequires: cmake
+BuildRequires: pkgconfig(vconf)
+
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
* limitations under the License.
*/
-#include "tizen_dotnet.h"
+#include <tizen_dotnet.h>
+#include <vconf.h>
int dotnet_util_get_tizen_api_version(int *version)
{