-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CMake changes to allow building without lusol #168
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,18 +16,30 @@ target_link_libraries(runMatrixHandlerTests.exe PRIVATE ReSolve resolve_matrix) | |
|
||
# Build matrix factorization tests | ||
add_executable(runMatrixFactorizationTests.exe runMatrixFactorizationTests.cpp) | ||
target_link_libraries(runMatrixFactorizationTests.exe PRIVATE ReSolve resolve_matrix) | ||
target_link_libraries(runMatrixFactorizationTests.exe PRIVATE ReSolve | ||
resolve_matrix) | ||
|
||
# Build LUSOL-related tests | ||
add_executable(runLUSOLTests.exe runLUSOLTests.cpp) | ||
target_link_libraries(runLUSOLTests.exe PRIVATE ReSolve resolve_matrix) | ||
if(RESOLVE_USE_LUSOL) | ||
add_executable(runLUSOLTests.exe runLUSOLTests.cpp) | ||
target_link_libraries(runLUSOLTests.exe PRIVATE ReSolve resolve_matrix) | ||
endif() | ||
Comment on lines
+23
to
+26
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Small changes needed in testing to disable LUSOL... |
||
|
||
# Install tests | ||
set(installable_tests runMatrixIoTests.exe runMatrixHandlerTests.exe runMatrixFactorizationTests.exe runLUSOLTests.exe) | ||
install(TARGETS ${installable_tests} | ||
RUNTIME DESTINATION bin/resolve/tests/unit) | ||
|
||
add_test(NAME matrix_test COMMAND $<TARGET_FILE:runMatrixIoTests.exe>) | ||
add_test(NAME matrix_handler_test COMMAND $<TARGET_FILE:runMatrixHandlerTests.exe>) | ||
add_test(NAME matrix_factorization_test COMMAND $<TARGET_FILE:runMatrixFactorizationTests.exe>) | ||
add_test(NAME lusol_test COMMAND $<TARGET_FILE:runLUSOLTests.exe>) | ||
set(installable_tests runMatrixIoTests.exe runMatrixHandlerTests.exe | ||
runMatrixFactorizationTests.exe) | ||
if(RESOLVE_USE_LUSOL) | ||
list(APPEND installable_tests runLUSOLTests.exe) | ||
endif() | ||
Comment on lines
+29
to
+33
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. And here |
||
|
||
install(TARGETS ${installable_tests} RUNTIME DESTINATION bin/resolve/tests/unit) | ||
|
||
add_test(NAME matrix_test COMMAND $<TARGET_FILE:runMatrixIoTests.exe>) | ||
add_test(NAME matrix_handler_test | ||
COMMAND $<TARGET_FILE:runMatrixHandlerTests.exe>) | ||
add_test(NAME matrix_factorization_test | ||
COMMAND $<TARGET_FILE:runMatrixFactorizationTests.exe>) | ||
|
||
if(RESOLVE_USE_LUSOL) | ||
add_test(NAME lusol_test COMMAND $<TARGET_FILE:runLUSOLTests.exe>) | ||
endif() | ||
Comment on lines
+43
to
+45
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. And here |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Off by default...