Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Huge code reorganization. Does not compile yet. This commit is made t…
…o save these changes before moving submodules from src/ext to ext
- Loading branch information
Showing
44 changed files
with
249 additions
and
178 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 |
---|---|---|
@@ -1,7 +1,4 @@ | ||
build* | ||
CMakeLists.txt.user* | ||
*build* | ||
*.tmp | ||
*~ | ||
!.gitignore | ||
!src | ||
!bin | ||
!data |
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 |
---|---|---|
@@ -1,15 +1,15 @@ | ||
[submodule "src/ext/nanogui"] | ||
path = src/ext/nanogui | ||
[submodule "ext/nanogui"] | ||
path = ext/nanogui | ||
url = https://github.com/wjakob/nanogui | ||
[submodule "src/ext/eigen"] | ||
path = src/ext/eigen | ||
[submodule "ext/eigen"] | ||
path = ext/eigen | ||
url = https://github.com/libigl/eigen.git | ||
[submodule "src/ext/openexr"] | ||
path = src/ext/openexr | ||
[submodule "ext/openexr"] | ||
path = ext/openexr | ||
url = https://github.com/openexr/openexr | ||
[submodule "src/ext/json"] | ||
path = src/ext/json | ||
[submodule "ext/json"] | ||
path = ext/json | ||
url = https://github.com/nlohmann/json | ||
[submodule "src/ext/zlib"] | ||
path = src/ext/zlib | ||
[submodule "ext/zlib"] | ||
path = ext/zlib | ||
url = https://github.com/madler/zlib.git |
File renamed without changes.
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,122 @@ | ||
# This file is part of the reference implementation for the paper | ||
# Bayesian Collaborative Denoising for Monte-Carlo Rendering | ||
# Malik Boughida and Tamy Boubekeur. | ||
# Computer Graphics Forum (Proc. EGSR 2017), vol. 36, no. 4, p. 137-153, 2017 | ||
# | ||
# All rights reserved. Use of this source code is governed by a | ||
# BSD-style license that can be found in the LICENSE.txt file. | ||
|
||
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8) | ||
|
||
PROJECT(BayesianCollaborativeDenoising) | ||
|
||
OPTION(BCD_BUILD_GUI "Build a GUI executable for bcd, using library NanoGUI" ON) | ||
OPTION(BCD_USE_CUDA "Use CUDA for accelerating computations" ON) | ||
|
||
# Add CMake folder to the module path : contains CMake specific files *.cmake | ||
SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/CMake" ${CMAKE_MODULE_PATH} ) | ||
|
||
# Set the default build to Release. Note this doesn't do anything for the VS | ||
# default build target which defaults to Debug when you first start it. | ||
IF(NOT CMAKE_BUILD_TYPE) | ||
SET(CMAKE_BUILD_TYPE "Release" CACHE STRING | ||
"Choose the type of build, options are: Debug Release RelWithDebInfo MinSizeRel." | ||
FORCE) | ||
ENDIF(NOT CMAKE_BUILD_TYPE) | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
# OpenMP | ||
FIND_PACKAGE(OpenMP) | ||
|
||
IF(${CMAKE_VERSION} VERSION_GREATER 3.8) | ||
|
||
# not tested yet | ||
MESSAGE(AUTHOR_WARNING "Using OpenMP detection from cmake 3.9.0+: not tested yet") | ||
IF(OPENMP_CXX_FOUND) | ||
ADD_LIBRARY(OpenMP ALIAS OpenMP::OpenMP_CXX) | ||
ELSE() | ||
MESSAGE(WARNING "Could not find OpenMP library") | ||
ENDIF() | ||
|
||
ELSE() | ||
|
||
IF(OPENMP_FOUND) | ||
ADD_LIBRARY(OpenMP INTERFACE) | ||
TARGET_COMPILE_OPTIONS(OpenMP INTERFACE ${OpenMP_CXX_FLAGS}) | ||
TARGET_LINK_LIBRARIES(OpenMP INTERFACE | ||
$<$<CXX_COMPILER_ID:GNU>:${OpenMP_CXX_FLAGS}> | ||
$<$<CXX_COMPILER_ID:Clang>:${OpenMP_CXX_FLAGS}> | ||
$<$<CXX_COMPILER_ID:Intel>:${OpenMP_CXX_FLAGS}> | ||
) | ||
ELSE() | ||
MESSAGE(WARNING "Could not find OpenMP library") | ||
ENDIF() | ||
|
||
ENDIF() | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
IF(BCD_USE_CUDA) | ||
|
||
SET(CUDA_PROPAGATE_HOST_FLAGS OFF) | ||
FIND_PACKAGE(CUDA) | ||
|
||
IF(NOT CUDA_FOUND) | ||
MESSAGE(WARNING "Could not find CUDA") | ||
ELSE(NOT CUDA_FOUND) | ||
|
||
SET(CUDA_LIBRARIES PUBLIC ${CUDA_LIBRARIES}) # hack to avoid cmake warnings related to policy CMP0023 (see https://gitlab.kitware.com/cmake/cmake/issues/16602 ) | ||
|
||
SET(config_types DEBUG RELEASE MINSIZEREL RELWITHDEBINFO) | ||
|
||
# We have to manually propagate all host flags but C++11... | ||
FOREACH(config ${config_types}) | ||
SET(CUDA_NVCC_FLAGS_${config} "${CUDA_NVCC_FLAGS_${config}} -Xcompiler ") | ||
# SET(CUDA_NVCC_FLAGS_${config} "${CUDA_NVCC_FLAGS_${config}} -g -lineinfo -Xcompiler ") #use this line instead of the previous one for debugging and line info (for nvprof for example) | ||
IF(OPENMP_FOUND) | ||
SET(CUDA_NVCC_FLAGS_${config} "${CUDA_NVCC_FLAGS_${config}},\"${OpenMP_CXX_FLAGS}\"") | ||
ENDIF(OPENMP_FOUND) | ||
STRING(REPLACE " " ";" FLAGS_LIST ${CMAKE_CXX_FLAGS_${config}}) | ||
FOREACH(flag ${FLAGS_LIST}) | ||
SET(CUDA_NVCC_FLAGS_${config} "${CUDA_NVCC_FLAGS_${config}},\"${flag}\"") | ||
ENDFOREACH() | ||
ENDFOREACH() | ||
ENDIF(NOT CUDA_FOUND) | ||
|
||
# Verbose option: put ON to see the whole build command lines | ||
IF(CUDA_FOUND) | ||
SET(CUDA_VERBOSE_BUILD ON) | ||
ENDIF(CUDA_FOUND) | ||
|
||
ENDIF(BCD_USE_CUDA) | ||
|
||
|
||
|
||
|
||
|
||
|
||
# Verbose option: put ON to see the whole build command lines | ||
#SET(CMAKE_VERBOSE_MAKEFILE ON) | ||
|
||
|
||
SET(bcd_include_folder "${CMAKE_SOURCE_DIR}/include/bcd") | ||
|
||
|
||
#MESSAGE(STATUS "Entering subdirectory 'ext'") | ||
ADD_SUBDIRECTORY(ext) | ||
|
||
#MESSAGE(STATUS "Entering subdirectory 'src'") | ||
ADD_SUBDIRECTORY(src) | ||
|
||
|
||
#INCLUDE(CPack) | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -1,2 +1 @@ | ||
CMakeLists.txt.user* | ||
*.tmp |
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
Oops, something went wrong.