From 5145705722c48dde7a2f19b2c1411ae783f600b7 Mon Sep 17 00:00:00 2001 From: Oskari Timperi Date: Thu, 8 Sep 2016 19:27:43 +0300 Subject: Make CMake build a bit better --- src/external/CMakeLists.txt | 1 + src/external/glfw3/CMakeLists.txt | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 src/external/CMakeLists.txt create mode 100644 src/external/glfw3/CMakeLists.txt (limited to 'src/external') diff --git a/src/external/CMakeLists.txt b/src/external/CMakeLists.txt new file mode 100644 index 00000000..1954053f --- /dev/null +++ b/src/external/CMakeLists.txt @@ -0,0 +1 @@ +ADD_SUBDIRECTORY(glfw3) diff --git a/src/external/glfw3/CMakeLists.txt b/src/external/glfw3/CMakeLists.txt new file mode 100644 index 00000000..9222b20d --- /dev/null +++ b/src/external/glfw3/CMakeLists.txt @@ -0,0 +1,9 @@ +INCLUDE(ExternalProject) + +ExternalProject_Add(glfw3 + GIT_REPOSITORY https://github.com/glfw/glfw.git + GIT_TAG 3.2.1 + CMAKE_ARGS -DGLFW_BUILD_EXAMPLES=OFF -DGLFW_BUILD_TESTS=OFF + -DGLFW_BUILD_DOCS=OFF + -DCMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX} +) -- cgit v1.2.3