- cd c:\projects\nlopt
- cmake -G "%CMAKE_PLATFORM%" -DWITH_CXX=ON -DCMAKE_INSTALL_PREFIX="C:\projects\nlopt\install" .
- cmake --build . --config %Configuration% --target install
- - xcopy Release\nlopt_cxx.dll test\Release
- ctest -C %Configuration% --output-on-failure --timeout 100
endif ()
if (enable_)
add_test (NAME testopt_algo${algo_index}_obj${obj_index} COMMAND testopt -a ${algo_index} -o ${obj_index})
+ if (WIN32)
+ set_tests_properties (testopt_algo${algo_index}_obj${obj_index} PROPERTIES ENVIRONMENT "PATH=${PROJECT_BINARY_DIR}\\${CMAKE_BUILD_TYPE};$ENV{PATH}") # to load dll
+ endif ()
endif ()
endforeach ()
endforeach ()