diff options
author | TravisBot <> | 2017-09-21 23:32:46 +0000 |
---|---|---|
committer | TravisBot <> | 2017-09-21 23:32:46 +0000 |
commit | 1a8ec165031af3b860028ef1b360acc8e7baf9e6 (patch) | |
tree | b9d2e956005b4de847417baf4a66ab3f028f1bc1 /lib | |
parent | f5ecbc445977654e84120b3b02a9fe5d86dae5c8 (diff) | |
download | YAGE-1a8ec165031af3b860028ef1b360acc8e7baf9e6.tar.gz YAGE-1a8ec165031af3b860028ef1b360acc8e7baf9e6.zip |
Rebuilding documentation
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CMakeLists.txt | 35 | ||||
m--------- | lib/glad | 0 | ||||
m--------- | lib/glfw | 0 | ||||
m--------- | lib/googletest | 0 | ||||
m--------- | lib/rapidjson | 0 |
5 files changed, 35 insertions, 0 deletions
diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt new file mode 100644 index 00000000..06d394d5 --- /dev/null +++ b/lib/CMakeLists.txt @@ -0,0 +1,35 @@ +# ---------------------------------------------------------------------------- +# CMakeLists.txt +# +# Copyright (c) 2017 Yann Herklotz Grave <ymherklotz@gmail.com> -- MIT License +# See file LICENSE for more details +# ---------------------------------------------------------------------------- + +if($ENV{UNIT_TESTS}) + # Initializing google test + # prevents overriding the parent project's compiler/linter settings on windows + set(gtest_force_shared_crt ON CACHE BOOL "" FORCE) + set(BUILD_GTEST ON CACHE BOOL "" FORCE) + set(BUILD_GMOCK OFF CACHE BOOL "" FORCE) + + # Add googletest directly to our build. This defines + # the gtest and gtest_main targets. + add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/googletest) + + # The gtest/gtest_main targets carry header search path + # dependencies automatically when using CMake 2.8.11 or + # later. Otherwise we have to add them here ourselves. + if (CMAKE_VERSION VERSION_LESS 2.8.11) + include_directories(${gtest_SOURCE_DIR}/include) + endif() +endif() + +include_directories(${rapidjson}/include) + +# setting up glfw +set(GLFW_BUILD_DOCS OFF CACHE BOOL "" FORCE) +set(GLFW_BUILD_TESTS OFF CACHE BOOL "" FORCE) +set(GLFW_BUILD_EXAMPLES OFF CACHE BOOL "" FORCE) +add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/glfw) + +add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/glad) diff --git a/lib/glad b/lib/glad new file mode 160000 +Subproject 1e168396e9f457a26523a80a6ae704558413eb6 diff --git a/lib/glfw b/lib/glfw new file mode 160000 +Subproject 999f3556fdd80983b10051746264489f2cb1ef1 diff --git a/lib/googletest b/lib/googletest new file mode 160000 +Subproject bfc0ffc8a698072c794ae7299db9cb6866f4c0b diff --git a/lib/rapidjson b/lib/rapidjson new file mode 160000 +Subproject 4c0f0036b54776dfc48ad76eca685caea0a1dc8 |