- add position independent option
- separte test programs from main package
SET(TIZEN_LOG_PKG dlog)
ENDIF(PLATFORM STREQUAL "tizen")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Werror -Wno-psabi -fdiagnostics-color -fvisibility=hidden")
+ SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pie")
PKG_CHECK_MODULES(AITT_NEEDS REQUIRED ${TIZEN_LOG_PKG} libmosquitto flatbuffers glib-2.0)
INCLUDE_DIRECTORIES(${AITT_NEEDS_INCLUDE_DIRS})
LINK_DIRECTORIES(${AITT_NEEDS_LIBRARY_DIRS})
%description plugins
The %{name}-plugins package contains basic plugin libraries for AITT P2P transport.
+%if 0%{test}
+%package unittests
+Summary: Test Programs for %{name}
+Group: System/Testing
+
+%description unittests
+The %{name}-unittests package contains programs for checking quality the %{name}.
+%endif
+
%package devel
Summary: AITT development package
Group: Development/Libraries
%files
%manifest %{name}.manifest
-%if 0%{test}
-%{_bindir}/*
-%endif
%{_libdir}/lib%{name}*.so*
%license LICENSE.APLv2
%{_libdir}/lib%{name}-transport*.so*
%license LICENSE.APLv2
+%if 0%{test}
+%files unittests
+%{_bindir}/*
+%endif
+
%files devel
%{_includedir}/*
%{_libdir}/pkgconfig/*.pc