Skip to content

Fixed GTest find command and re-enabled tests.#10

Open
LinusVanElswijk wants to merge 71 commits intoandre-schulz:cmakefrom
LinusVanElswijk:fix/GTest
Open

Fixed GTest find command and re-enabled tests.#10
LinusVanElswijk wants to merge 71 commits intoandre-schulz:cmakefrom
LinusVanElswijk:fix/GTest

Conversation

@LinusVanElswijk
Copy link

CMake could not find GTest, because of a small typo in the CMakeFile ("Gtest" instead of "GTest").
This commit fixes that and adds the 'tests' subdirectory back into to the project.
(It was commented out before).

If GTest cannot be found, the test subdirectory is automatically skipped.

- libpng 1.6.10 -> 1.6.17
- glew 1.10 -> 1.12
- Somehow Qt5's configure terminates the shell it runs in and thus the BUILD_COMMAND is not executed
andre-schulz and others added 13 commits October 3, 2017 22:12
Required by apps/umve/viewinspect/imageoperations.cc
This changes the location of Qt5 to a saner location.
Remove the old location from the CMAKE_PREFIX_PATH in the top-level CMakeLists.txt.
zlib should be found automatically without explicit setting of ZLIB_ROOT.
The dependencies which use CMake can be built out-of-source so the
BUILD_IN_SOURCE option is not needed for these projects.
- Updated CMake minimum version from 3.0 to 3.7 because the glew external
  project makes use of SOURCE_SUBDIR which was introduced in CMake 3.7
- Update libpng from 1.6.21 to 1.6.29
  - Reduced download size by downloading a .7z archive instead of a .zip
- Update zlib from 1.2.8 to 1.2.11
  - Reduced download size by downloading a .tar.xz archive instead of .zip
- Update libtiff from 4.0.4 to 4.0.8
- Update glew from 1.12.0 to 2.0.0
  - Reduce download size by downloading a .tgz archive instead of .zip
  - Now using glew's CMake build system because it makes things easier and
    we longer need "patches/glew.rc".
  - Remove setting of GLEW_STATIC because we now link against a shared version
    of glew
- Update gtest from 1.7.0 to 1.8.0
  - Reduced download size by downloading a .tar.gz archive instead of .zip
  - Removed install commands and BUILD_IN_SOURCE option because gtest 1.8.0
    finally uses install()
Somehow I lost this patch while working on the cmake branch.
Thanks to @LinusVanElswijk for fixing this in PR simonfuhrmann#8.
Only 64-bit builds are supported for MVE
- VS_{CONFIG, PLATFORM, PLATFORM_TOOLSET} are no longer needed for glew because
  we're using its CMake build system.
- Add some sanity checks regarding operating system, compiler and architecture
MSVC_VERSION works with all Visual Studio versions.
This replaces the OpenMP install hack with a saner standardized solution from CMake.
The CMAKE_INSTALL_OPENMP_LIBRARIES variable exists since CMake 3.1.
@andre-schulz andre-schulz self-assigned this Nov 1, 2017
@andre-schulz
Copy link
Owner

Hi @LinusVanElswijk,
thanks for your contribution. I will take a closer look at it as soon as I can.

@andre-schulz
Copy link
Owner

Hi @LinusVanElswijk,
sorry for the long delay. :(
Overall, this looks pretty good and I would request only a few minor changes ... that is if you're still interested in this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants