diff --git a/CMakeLists.txt b/CMakeLists.txt index b6aae005..9689eaa3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -79,7 +79,17 @@ else() endif() if(MSVC) - add_definitions("/bigobj") + find_package(Eigen3 REQUIRED) + include_directories(${EIGEN3_INCLUDE_DIR}) + find_package(libdxfrw REQUIRED) + include_directories(${libdxfrw_INCLUDE_DIR}) + find_package(freetype REQUIRED) + include_directories(${freetype_INCLUDE_DIR}) + find_package(glew REQUIRED) + include_directories(${glew_INCLUDE_DIR}) + find_package(glm REQUIRED) + include_directories(${glm_INCLUDE_DIR}) + add_definitions("/bigobj") set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON) # Kaguya uses a pointer to a local variable (in object.hpp file) to store class conversions. # When used in different modules, the variable doesn't have the same address, preventing to mix kernel and UI bindings