summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKazumasa Mitsunari <knimitz@witz-inc.co.jp>2018-08-08 13:31:17 +0900
committerKazumasa Mitsunari <knimitz@witz-inc.co.jp>2018-08-08 13:31:17 +0900
commita1fc65266653056f211eebfd610c64fa5af70ad5 (patch)
tree8052e7958f024adaad1ce23b42a67ee63cadfed7
parentab84647365b34b3e054d56c33619cdfdf7396e7c (diff)
Compile together with sample code
Change-Id: Ib5c9f141091da9b8c5e9c477f3cd6176aae31322 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
-rw-r--r--CMakeLists.txt2
-rw-r--r--sample/simple-egl/CMakeLists.txt6
2 files changed, 6 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ad24ccb..0d7a37a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -44,3 +44,5 @@ configure_file(libwindowmanager.pc.in libwindowmanager.pc @ONLY)
INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/libwindowmanager.pc
DESTINATION
${CMAKE_INSTALL_LIBDIR}/pkgconfig)
+
+add_subdirectory(sample/simple-egl)
diff --git a/sample/simple-egl/CMakeLists.txt b/sample/simple-egl/CMakeLists.txt
index 05cfaff..d6c6e90 100644
--- a/sample/simple-egl/CMakeLists.txt
+++ b/sample/simple-egl/CMakeLists.txt
@@ -29,11 +29,13 @@ set(CMAKE_CXX_FLAGS "-Wall -fpermissive")
aux_source_directory(src DIR_SRCS)
#head file path
-include_directories(include)
+include_directories(
+ include
+ ${CMAKE_SOURCE_DIR}/src)
#set extern libraries
SET(LIBRARIES
- libwindowmanager.so
+ ${CMAKE_BINARY_DIR}/src/libwindowmanager.so
libEGL.so
libGLESv2.so
libm.so