-
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.
Merge pull request #17 from RangeShifter/cmake
Use Cmake
- Loading branch information
Showing
13 changed files
with
125 additions
and
64 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
.gitignore | ||
#README.md | ||
|
||
# CodeLite | ||
/.build-debug/ | ||
/Debug/ | ||
/Release/ | ||
/RNG_test/ | ||
.codelite/ | ||
compile_commands.json | ||
Makefile | ||
.build-release/ | ||
build-Release/ | ||
*.project | ||
*.workspace | ||
*.mk | ||
*.tags | ||
|
||
# Hidden source | ||
/RangeShiftR/src/.* | ||
|
||
# Windows files | ||
/RangeShiftR/src/*.dll | ||
|
||
# History files | ||
.Rhistory | ||
.Rapp.history | ||
|
||
# RStudio files | ||
.Rproj.user/ | ||
/RangeShiftR/.Rproj.user/ | ||
#/RangeShiftR/RangeShiftR.Rproj | ||
/RangeShiftR/Read-and-delete-me | ||
/RangeShiftR/.Rhistory | ||
#/RangeShiftR/.Rbuildignore | ||
|
||
# Session Data files | ||
.RData | ||
tags | ||
|
||
# User-specific files | ||
.Ruserdata | ||
|
||
# Example code in package build process | ||
*-Ex.R | ||
|
||
# Output files from R CMD build | ||
*.tar.gz | ||
/RangeShiftR/src/*.o | ||
/RangeShiftR/src/RangeShiftR.so | ||
|
||
|
||
# Windows files | ||
/RangeShiftR/src/*.dll | ||
|
||
# Output files from R CMD check | ||
/*.Rcheck/ | ||
|
||
# Output from Rcpp compile.attributes() | ||
#/RangeShiftR/R/RcppExports.R | ||
#/RangeShiftR/src/RcppExports.cpp | ||
|
||
# RStudio files | ||
.Rproj.user/ | ||
|
||
# produced vignettes | ||
vignettes/*.html | ||
vignettes/*.pdf | ||
#/RangeShiftR/man/ | ||
|
||
# OAuth2 token, see https://github.com/hadley/httr/releases/tag/v0.3 | ||
.httr-oauth | ||
|
||
# knitr and R markdown default cache directories | ||
/*_cache/ | ||
/cache/ | ||
|
||
# Temporary files created by R markdown | ||
*.utf8.md | ||
*.knit.md | ||
|
||
# compilation files | ||
*.o | ||
|
||
# Visual Studio | ||
.vs/ | ||
out/ |
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 @@ | ||
# Config file for compilation with CMake | ||
# Only relevant for Batch mode, but this file needs to live in the RScore folder | ||
|
||
add_library(RScore Species.cpp Cell.cpp Community.cpp FractalGenerator.cpp Genome.cpp Individual.cpp Landscape.cpp Model.cpp Parameters.cpp Patch.cpp Population.cpp RandomCheck.cpp RSrandom.cpp SubCommunity.cpp) | ||
|
||
# pass config definitions to compiler | ||
if(CMAKE_SYSTEM_NAME STREQUAL "Linux" OR CMAKE_SYSTEM_NAME STREQUAL "Darwin") | ||
target_compile_definitions(RScore PRIVATE "RSDEBUG" "RSWIN64" "LINUX_CLUSTER") | ||
else() # Windows | ||
target_compile_definitions(RScore PRIVATE "RSDEBUG" "RSWIN64") | ||
endif() |
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
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
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
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
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
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