summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorzheng_wenlong <wenlong_zheng@nexty-ele.com>2017-09-29 20:42:53 +0900
committerzheng_wenlong <wenlong_zheng@nexty-ele.com>2017-10-05 13:37:43 +0900
commite0163d2b8daae98ced81f4bc737998c00858e771 (patch)
treeaba44cb1b2878bb010c87474a95fc57d1d74380c /cmake
parent613f4b2e32cc84b3b1e76e3481cf0a08b4c1ea12 (diff)
Add agl-service-homescreen-2017
Add a new binding agl-service-homescreen-2017 for homescreen-2017. There is a gles sample how to use this binding in sample/simple-egl. A image about this see JIRA SPEC-871. [PatchSets2] Use aglwgt make package. Change-Id: I9ae89188f9eb2de4c98ec8baa2f05fccca8b2372 Signed-off-by: zheng_wenlong <wenlong_zheng@nexty-ele.com>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/Findgtest.cmake38
1 files changed, 38 insertions, 0 deletions
diff --git a/cmake/modules/Findgtest.cmake b/cmake/modules/Findgtest.cmake
new file mode 100644
index 0000000..8ea850f
--- /dev/null
+++ b/cmake/modules/Findgtest.cmake
@@ -0,0 +1,38 @@
+SET(MODULE_NAME gtest)
+
+SET(${MODULE_NAME}_FOUND FALSE)
+
+FIND_PATH(${MODULE_NAME}_INCLUDE_DIRS
+ NAMES gtest/gtest.h
+ PATHS /usr/include /usr/local/include
+)
+
+FIND_LIBRARY(LIB_GTEST
+ NAMES gtest
+ PATHS /usr/lib
+ /usr/lib64
+ /usr/local/lib
+ /usr/local/lib64
+)
+
+FIND_LIBRARY(LIB_GTEST_MAIN
+ NAMES gtest_main
+ PATHS /usr/lib
+ /usr/lib64
+ /usr/local/lib
+ /usr/local/lib64
+)
+
+IF(LIB_GTEST AND LIB_GTEST_MAIN)
+ SET(${MODULE_NAME}_FOUND TRUE)
+ SET(${MODULE_NAME}_LIBRARIES ${LIB_GTEST} ${LIB_GTEST_MAIN})
+ENDIF()
+
+MARK_AS_ADVANCED(
+ ${MODULE_NAME}_FOUND
+ ${MODULE_NAME}_INCLUDE_DIRS
+ ${MODULE_NAME}_LIBRARIES
+)
+
+MESSAGE(STATUS "${MODULE_NAME}_INCLUDE_DIRS: ${${MODULE_NAME}_INCLUDE_DIRS}")
+MESSAGE(STATUS "${MODULE_NAME}_LIBRARIES: ${${MODULE_NAME}_LIBRARIES}")