Skip to content

Commit

Permalink
Add some misc files for build stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
guitargeek committed Oct 4, 2024
1 parent 64068a6 commit 54197a8
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ include(${ROOT_USE_FILE})

set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
set(CMAKE_INSTALL_BINDIR "bin" CACHE PATH "user executables (bin)")
set(CMAKE_INSTALL_INCLUDEDIR "include" CACHE PATH "header files")
set(CMAKE_INSTALL_LIBDIR "lib" CACHE PATH "libraries")

if(ccache)
set(CMAKE_C_COMPILER_LAUNCHER ccache)
Expand Down
17 changes: 17 additions & 0 deletions default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
with import <nixpkgs> { };

clangStdenv.mkDerivation {
name = "roofit";
src = ./.;

buildInputs = [
(root.overrideAttrs (old: { cmakeFlags = old.cmakeFlags ++ [ "-Droofit=OFF -Dtmva=OFF" ]; }))
cmake
gtest
gsl
pkg-config
];

cmakeFlags = [
];
}
7 changes: 7 additions & 0 deletions settings-dev.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
set (CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING "" FORCE)
set (CMAKE_INSTALL_PREFIX ../install CACHE STRING "" FORCE)
set (CMAKE_INSTALL_BINDIR bin CACHE STRING "" FORCE)
set (CMAKE_INSTALL_INCLUDEDIR include CACHE STRING "" FORCE)
set (CMAKE_INSTALL_LIBDIR lib CACHE STRING "" FORCE)
set (testing ON CACHE BOOL "" FORCE)
set (mathmore ON CACHE BOOL "" FORCE)
1 change: 1 addition & 0 deletions setup.fish
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
set -g ROOT_INCLUDE_PATH $PWD/install/include
set -g -a LD_LIBRARY_PATH $PWD/install/lib
set -g -a DYLD_LIBRARY_PATH $PWD/install/lib
3 changes: 3 additions & 0 deletions setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export ROOT_INCLUDE_PATH=$PWD/install/include
export LD_LIBRARY_PATH=$PWD/install/lib:$LD_LIBRARY_PATH
export DYLD_LIBRARY_PATH=$PWD/install/lib:$DYLD_LIBRARY_PATH

0 comments on commit 54197a8

Please sign in to comment.