forked from TriBITSPub/TriBITS
-
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.
Make TribitsExampleProjectAddons its own TriBITS project (SAQUASH ME)…
… (TriBITS TriBITSPub#73) This pulls in TribitsExampleProject as a PRE extra repo. This was super easy to do!
- Loading branch information
Roscoe A. Bartlett
committed
Jun 4, 2015
1 parent
e38d4e5
commit 5909984
Showing
7 changed files
with
233 additions
and
3 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
46 changes: 46 additions & 0 deletions
46
tribits/examples/TribitsExampleProjectAddons/CMakeLists.txt
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,46 @@ | ||
################################################################################ | ||
# # | ||
# TribitsExampleProjectAddons # | ||
# # | ||
################################################################################ | ||
|
||
# To be safe, define your minimum CMake version. This may be newer than the | ||
# min required by TriBITS. | ||
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.11 FATAL_ERROR) | ||
|
||
# Make CMake set WIN32 with CYGWIN for older CMake versions. CMake requires | ||
# this to be in the top-level CMakeLists.txt file and not an include file :-( | ||
SET(CMAKE_LEGACY_CYGWIN_WIN32 1 CACHE BOOL "" FORCE) | ||
|
||
# | ||
# A) Define your project name and set up major project options | ||
# | ||
# NOTE: Don't set options that would impact what packages get defined or | ||
# enabled/disabled in this file as that would not impact other tools that | ||
# don't process this file. | ||
# | ||
|
||
# Get PROJECT_NAME (must be in a file for other parts of system to read) | ||
INCLUDE("${CMAKE_CURRENT_SOURCE_DIR}/ProjectName.cmake") | ||
|
||
# CMake requires that you declare the CMake project in the top-level file and | ||
# not in an include file :-( | ||
PROJECT(${PROJECT_NAME} NONE) | ||
|
||
# | ||
# B) Pull in the TriBITS system and execute | ||
# | ||
|
||
SET(${PROJECT_NAME}_TRIBITS_DIR | ||
"${CMAKE_CURRENT_LIST_DIR}/../.." CACHE STRING | ||
"TriBITS base directory (default assumes in TriBITS source tree)") | ||
INCLUDE("${${PROJECT_NAME}_TRIBITS_DIR}/TriBITS.cmake") | ||
|
||
# Set default location for header-only TPL to make easy to configure out of | ||
# the TriBITS source tree. | ||
SET(HeaderOnlyTpl_INCLUDE_DIRS | ||
"${${PROJECT_NAME}_TRIBITS_DIR}/examples/tpls/HeaderOnlyTpl" | ||
CACHE PATH "Default set by TriBITS/CMakeLists.txt" ) | ||
|
||
# Do all of the processing for this Tribits project | ||
TRIBITS_PROJECT() |
11 changes: 11 additions & 0 deletions
11
tribits/examples/TribitsExampleProjectAddons/ProjectName.cmake
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,11 @@ | ||
# Must set the project name at very beginning before including anything else | ||
SET(PROJECT_NAME TribitsExProjAddons) | ||
|
||
# Turn on export depenency generation for WrapExteranl package | ||
SET(${PROJECT_NAME}_GENERATE_EXPORT_FILE_DEPENDENCIES_DEFAULT ON) | ||
|
||
# Must always have the PRE extra repo TribitsExampleProject/ or can't build | ||
SET(${PROJECT_NAME}_EXTRAREPOS_FILE cmake/ExtraRepositoriesList.cmake | ||
CACHE FILEPATH "Set in ProjectName.cmake") | ||
SET(${PROJECT_NAME}_ENABLE_KNOWN_EXTERNAL_REPOS_TYPE Continuous | ||
CACHE STRING "Set in ProjectName.cmake") |
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,21 @@ | ||
# | ||
# TribitsExampleProjectAddons Documentation | ||
# | ||
|
||
WARNING: WORK IN PROGRESS! This TriBITS example project will get fleshed out | ||
more in the future to be more complete. | ||
|
||
The project TribitsExampleProjectAddons defines a TriBITS CMake project | ||
designed to provide a simple example to demonstrate how to use extra | ||
repositories with the TriBITS system. | ||
|
||
To get started building you can create a directory structure like: | ||
|
||
~/TribitsExampleProjectAddons.base/ | ||
TribitsExampleProjectAddons/ # This directory | ||
TribitsExampleProject/ # Copied in TribitsExampleProject/ dir | ||
BUILDS/ | ||
GCC-<X.Y.Z>/ | ||
MPI_DEBUG/ | ||
|
||
ToDo: Finish documentation! |
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,5 @@ | ||
SET(${REPOSITORY_NAME}_VERSION 1.1) | ||
SET(${REPOSITORY_NAME}_MAJOR_VERSION 01) | ||
SET(${REPOSITORY_NAME}_MAJOR_MINOR_VERSION 010100) | ||
SET(${REPOSITORY_NAME}_VERSION_STRING "1.1 (Dev)") | ||
SET(${REPOSITORY_NAME}_ENABLE_DEVELOPMENT_MODE_DEFAULT ON) # Change to 'OFF' for a release |
3 changes: 3 additions & 0 deletions
3
tribits/examples/TribitsExampleProjectAddons/cmake/ExtraRepositoriesList.cmake
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,3 @@ | ||
TRIBITS_PROJECT_DEFINE_EXTRA_REPOSITORIES( | ||
TribitsExampleProject "" GIT dummy-git-url PRE Continuous | ||
) |