doc: documentation update, more examples, some external links
[staging/windowmanager.git] / src / CMakeLists.txt
index f83aae2..e7b11eb 100644 (file)
@@ -1,3 +1,19 @@
+#
+# Copyright (C) 2017 Mentor Graphics Development (Deutschland) GmbH
+#
+# 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.
+#
+
 wlproto(IVI_CON ivi-controller)
 
 include(FindPkgConfig)
@@ -101,6 +117,12 @@ set_target_properties(winman
 
         LINK_FLAGS "-Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/../export.map")
 
+set_target_properties(redraw_fixer
+    PROPERTIES
+        CXX_EXTENSIONS OFF
+        CXX_STANDARD 14
+        CXX_STANDARD_REQUIRED ON)
+
 if (LINK_LIBCXX)
    set_target_properties(winman
            PROPERTIES
@@ -118,3 +140,13 @@ if (NOT ${SANITIZER_MODE} STREQUAL "none" AND NOT ${SANITIZER_MODE} STREQUAL "")
       PROPERTIES
          LINK_FLAGS "-fsanitize=${SANITIZER_MODE} -g")
 endif()
+
+install(
+   TARGETS winman
+   DESTINATION ${CMAKE_INSTALL_PREFIX}/AGL/WindowManagerTMC
+   COMPONENT "runtime")
+
+install(
+   TARGETS redraw_fixer
+   DESTINATION ${CMAKE_INSTALL_BINDIR}
+   COMPONENT "runtime")