forked from pachterlab/kallisto
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
27 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
cmake_minimum_required(VERSION 2.8.8) | ||
project(catch_builder CXX) | ||
include(ExternalProject) | ||
find_package(Git REQUIRED) | ||
|
||
ExternalProject_Add( | ||
catch | ||
PREFIX ${CMAKE_BINARY_DIR}/catch | ||
GIT_REPOSITORY https://github.com/philsquared/Catch.git | ||
TIMEOUT 10 | ||
UPDATE_COMMAND ${GIT_EXECUTABLE} pull | ||
CONFIGURE_COMMAND "" | ||
BUILD_COMMAND "" | ||
INSTALL_COMMAND "" | ||
LOG_DOWNLOAD ON | ||
) | ||
|
||
# Expose required variable (CATCH_INCLUDE_DIR) to parent scope | ||
ExternalProject_Get_Property(catch source_dir) | ||
set(CATCH_INCLUDE_DIR ${source_dir}/include CACHE INTERNAL "Path to include folder for Catch") |