diff --git a/.appveyor.yml b/.appveyor.yml index 5e90620..d5874b7 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -81,7 +81,7 @@ build_script: ) else ( mkdir build & cd build & - cmake .. -DPython_Version="3.6" -DEIGEN3_INCLUDE_DIR="external/build/include/eigen3" -DCeres_DIR="external/build/CMake" -DNLOPT_INCLUDE_DIRS="external/build/include" -DNLOPT_LIBRARIES="external/build/lib/nlopt.lib" -Wdev -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DCMAKE_BUILD_TYPE=Release -G "NMake Makefiles" & + cmake .. -DPython_Version="3.6" -DEIGEN3_INCLUDE_DIR="external/build/include/eigen3" -DCeres_DIR="external/build/CMake" -DNLOPT_INCLUDE_DIRS="../external/build/include" -DNLOPT_LIBRARIES="../external/build/lib/nlopt.lib" -Wdev -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DCMAKE_BUILD_TYPE=Release -G "NMake Makefiles" & nmake /NOLOGO & cd .. ) diff --git a/CMakeLists.txt b/CMakeLists.txt index a7584ee..9d6174b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -209,15 +209,15 @@ target_link_libraries(rational_fitter_parallel quadprog) # TODO: Add check before compiling IPOPT if (CERES_FOUND) - include_directories( ${CERES_INCLUDE_DIR} ) alta_add_plugin(nonlinear_fitter_ceres nonlinear_fitter_ceres/fitter.cpp) target_link_libraries(nonlinear_fitter_ceres ${CERES_LIBRARIES}) + target_include_directories(nonlinear_fitter_ceres PUBLIC ${CERES_INCLUDE_DIR}) list(APPEND nonlinear_fitters ceres) endif() if (NLOPT_FOUND) - include_directories( ${NLOPT_INCLUDE_DIRS} ) alta_add_plugin(nonlinear_fitter_nlopt nonlinear_fitter_nlopt/fitter.cpp) target_link_libraries(nonlinear_fitter_nlopt ${NLOPT_LIBRARIES}) + target_include_directories(nonlinear_fitter_nlopt PUBLIC ${NLOPT_INCLUDE_DIRS}) list(APPEND nonlinear_fitters nlopt) endif() #alta_add_plugin(nonlinear_fitter_ipopt nonlinear_fitter_ipopt/fitter.cpp) @@ -306,9 +306,9 @@ add_test(NAME "brdf2data_kirby" "--data-file" "${CMAKE_SOURCE_DIR}/sources/tests/Kirby2.dat" WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/tests") -add_test(NAME "data2stats_kirby" - COMMAND "data2stats" "--input" "Kirby2.dat" - "--ref" "${CMAKE_SOURCE_DIR}/sources/tests/Kirby2.dat" +add_test(NAME "data2stats_pinkfelt" + COMMAND "data2stats" "--input" "${CMAKE_SOURCE_DIR}/data/brdf/pink-felt-1d.alta" + "--ref" "${CMAKE_SOURCE_DIR}/data/brdf/pink-felt-1d.alta" WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/tests") foreach(fitter IN ITEMS ${nonlinear_fitters}) diff --git a/sources/scripts/installer.nsi b/sources/scripts/installer.nsi index 0317c93..e13bc56 100644 --- a/sources/scripts/installer.nsi +++ b/sources/scripts/installer.nsi @@ -64,7 +64,7 @@ Section "ALTA" SecMain ; Python package SetOutPath $INSTDIR\python - File /nonfatal /r "${ALTADIR}\build\python\alta.dll" + File /nonfatal /r "${ALTADIR}\build\python\alta.pyd" # Update the ENVIROMNENT WriteRegStr HKCU "Environment" "ALTA_DIR" '$INSTDIR'