Skip to content

Commit

Permalink
Fixes to CMake
Browse files Browse the repository at this point in the history
  • Loading branch information
pelesh committed Oct 20, 2023
1 parent 5c5bdd8 commit 977e1da
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions resolve/cpu/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ set(ReSolve_CPU_HEADER_INSTALL

# First create dummy backend
add_library(resolve_backend_cpu SHARED ${ReSolve_CPU_SRC})
target_link_libraries(resolve_backend_cpu PRIVATE resolve_logger)

target_include_directories(resolve_backend_cpu INTERFACE
$<BUILD_INTERFACE:${CMAKE_SOURCE_DIR}>
$<INSTALL_INTERFACE:include>
Expand Down
1 change: 1 addition & 0 deletions resolve/matrix/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ endif()

# Build shared library ReSolve::matrix
add_library(resolve_matrix SHARED ${Matrix_SRC})
target_link_libraries(resolve_matrix PRIVATE resolve_logger resolve_vector)

# Link to CUDA ReSolve backend if CUDA is support enabled
if (RESOLVE_USE_CUDA)
Expand Down
1 change: 1 addition & 0 deletions resolve/vector/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ if(RESOLVE_USE_CUDA)
endif()

add_library(resolve_vector SHARED ${Vector_SRC})
target_link_libraries(resolve_vector PRIVATE resolve_logger)

# Link to ReSolve CUDA backend if CUDA is enabled
if (RESOLVE_USE_CUDA)
Expand Down
8 changes: 3 additions & 5 deletions tests/unit/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

]]

if(RESOLVE_USE_CUDA)
add_subdirectory(matrix)
add_subdirectory(vector)
add_subdirectory(utilities)
endif(RESOLVE_USE_CUDA)
add_subdirectory(matrix)
add_subdirectory(vector)
add_subdirectory(utilities)

0 comments on commit 977e1da

Please sign in to comment.