--- /dev/null
+Adam Malinowski <a.malinowsk2@partner.samsung.com>
--- /dev/null
+# Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# @file CMakeLists.txt
+# @author Adam Malinowski <a.malinowsk2@partner.samsung.com>
+#
+
+############################# Check minimum CMake version #####################
+
+CMAKE_MINIMUM_REQUIRED(VERSION 2.8.3)
+PROJECT("screenshooter")
+set(SCREENSHOOTER_VERSION 0.0.1)
+
+############################# cmake packages ##################################
+
+INCLUDE(FindPkgConfig)
+INCLUDE(CheckCXXCompilerFlag)
+
+############################# install dirs ##################################
+
+SET(BIN_INSTALL_DIR
+ "${CMAKE_INSTALL_PREFIX}/bin"
+ CACHE PATH
+ "Binary installation directory")
+
+############################# compiler flags ##################################
+
+SET(CMAKE_CXX_FLAGS_PROFILING "-O0 -g -pg")
+SET(CMAKE_CXX_FLAGS_DEBUG "-O0 -g -ggdb")
+SET(CMAKE_CXX_FLAGS_RELEASE "-O2 -g")
+SET(CMAKE_CXX_FLAGS_CCOV "-O2 -g --coverage")
+
+# Set compiler warning flags
+ADD_DEFINITIONS("-Werror") # Make all warnings into errors.
+ADD_DEFINITIONS("-Wall") # Generate all warnings
+ADD_DEFINITIONS("-Wextra") # Generate even more extra warnings
+
+# Don't export symbols by default
+ADD_DEFINITIONS("-fvisibility=hidden")
+
+
+IF (CMAKE_BUILD_TYPE MATCHES "DEBUG")
+ ADD_DEFINITIONS("-DBUILD_TYPE_DEBUG")
+ENDIF (CMAKE_BUILD_TYPE MATCHES "DEBUG")
+
+SET(TARGET_SCREENSHOOTER "screenshooter")
+
+ADD_SUBDIRECTORY(src)
--- /dev/null
+* Mon May 23 2016 Adam Malinowski <a.malinowsk2@partner.samsung.com> 0.0.1
+- Initial release
--- /dev/null
+Name: screenshooter
+Summary: Tool for taking screenshots
+Version: 0.0.1
+Release: 1
+Group: Development/Tools
+License: Apache-2.0
+URL: http://www.tizen.org
+Source0: %{name}_%{version}.tar.gz
+BuildRequires: cmake
+
+BuildRoot: %{_tmppath}/%{name}_%{version}-build
+
+%description
+Tool for taking screeenshots from command-line.
+
+%prep
+%setup -q -n %{name}-%{version}
+
+%build
+cmake -DCMAKE_INSTALL_PREFIX=/usr
+%__make
+
+%install
+rm -rf %{buildroot}
+%make_install
+
+%files
+%{_bindir}/%{name}
--- /dev/null
+# Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# @file src/CMakeLists.txt
+# @author Adam Malinowski <a.malinowsk2@partner.samsung.com>
+#
+
+FIND_PACKAGE(PkgConfig)
+
+PKG_CHECK_MODULES(SCREENSHOOTER_DEP
+ REQUIRED
+ )
+
+SET(SCREENSHOOTER_PATH
+ ${PROJECT_SOURCE_DIR}/src
+ )
+
+SET(SCREENSHOOTER_SOURCES
+ ${SCREENSHOOTER_PATH}/main.c
+ )
+
+INCLUDE_DIRECTORIES(
+ ${SCREENSHOOTER_PATH}
+ ${SCREENSHOOTER_DEP_INCLUDE_DIRS}
+ )
+
+ADD_EXECUTABLE(${TARGET_SCREENSHOOTER} ${SCREENSHOOTER_SOURCES})
+
+TARGET_LINK_LIBRARIES(${TARGET_SCREENSHOOTER}
+ ${SCREENSHOOTER_DEP_LIBRARIES}
+ )
+
+INSTALL(TARGETS ${TARGET_SCREENSHOOTER} DESTINATION ${BIN_INSTALL_DIR})
--- /dev/null
+/*
+ * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License
+ */
+/**
+ * @file src/main.cpp
+ * @author Adam Malinowski <a.malinowsk2@partner.samsung.com>
+ * @brief Main source file of screenshooter
+ */
+
+#include <stdlib.h>
+
+int main(int argc, const char **argv) {
+ (void) argc;
+ (void) argv;
+
+ return EXIT_SUCCESS;
+}