update cmakelist

This commit is contained in:
Shuo Feng 2024-02-01 16:54:32 -05:00
parent 97aacc1861
commit 4aa6f4712e
Signed by: sfeng
GPG key ID: 1E83AE6CD1C037B1

View file

@ -31,16 +31,7 @@ set(CMAKE_PREFIX_PATH
/opt/local # Macports
)
# ENCS Eigen3 CMake setup
if (WIN32)
include_directories(C:/Users/ambec/Desktop/labs/COMP371_all/COMP371_RaytracerBase/code/eigen-3.4.0/)# for windows you can directly hardcode the paths to your libraries in the include
else()
set(ENV{EIGEN3_ROOT} /usr/include/eigen3/Eigen)
# set(CMAKE_MODULE_PATH /encs/pkg/eigen-3.3.7/root/cmake)
find_package(Eigen3 REQUIRED)
include_directories(${EIGEN3_INCLUDE_DIR})
endif()
include_directories(/usr/include/eigen3)
# If you need too manually add the paths to your Eigen library, you can add it here
# do not delete the other