Skip to content

Commit

Permalink
each lib include libs path is relative to its own dir
Browse files Browse the repository at this point in the history
  • Loading branch information
yoctoyotta1024 committed Jan 11, 2024
1 parent 87bc484 commit 49001f3
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion libs/cartesiandomain/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ add_library("${LIBNAME}" SHARED ${SOURCES})

# add directories to include for target
target_include_directories(${LIBNAME} PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}")
target_include_directories(${LIBNAME} PRIVATE "${CMAKE_SOURCE_DIR}/libs")
target_include_directories(${LIBNAME} PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/../libs")

# link libraries in libs to this target
set(LINKLIBS initialise superdrops gridboxes)
Expand Down
2 changes: 1 addition & 1 deletion libs/coupldyn_cvode/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ add_library("${LIBNAME}" SHARED ${SOURCES})

# add directories to include for target
target_include_directories(${LIBNAME} PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}")
target_include_directories(${LIBNAME} PRIVATE "${CMAKE_SOURCE_DIR}/libs")
target_include_directories(${LIBNAME} PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/../libs")

# link libraries in libs to this target
set(LINKLIBS initialise superdrops gridboxes)
Expand Down
2 changes: 1 addition & 1 deletion libs/coupldyn_fromfile/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ add_library("${LIBNAME}" SHARED ${SOURCES})

# add directories to include for target
target_include_directories(${LIBNAME} PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}")
target_include_directories(${LIBNAME} PRIVATE "${CMAKE_SOURCE_DIR}/libs")
target_include_directories(${LIBNAME} PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/../libs")

# link libraries in libs to this target
set(LINKLIBS initialise gridboxes superdrops)
Expand Down
2 changes: 1 addition & 1 deletion libs/gridboxes/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ add_library("${LIBNAME}" SHARED ${SOURCES})

# add directories to include for target
target_include_directories(${LIBNAME} PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}")
target_include_directories(${LIBNAME} PRIVATE "${CMAKE_SOURCE_DIR}/libs")
target_include_directories(${LIBNAME} PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/../libs")

# link libraries in libs to this target
set(LINKLIBS superdrops)
Expand Down
2 changes: 1 addition & 1 deletion libs/initialise/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ add_library("${LIBNAME}" SHARED ${SOURCES})

# add directories to include for targets
target_include_directories(${LIBNAME} PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}")
target_include_directories(${LIBNAME} PRIVATE "${CMAKE_SOURCE_DIR}/libs")
target_include_directories(${LIBNAME} PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/../libs")

# link libraries in libs to this target
target_link_libraries(${LIBNAME} PUBLIC Kokkos::kokkos)
Expand Down
2 changes: 1 addition & 1 deletion libs/observers/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ add_library(${LIBNAME} SHARED ${SOURCES})

# add directories to include for target
target_include_directories(${LIBNAME} PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}")
target_include_directories(${LIBNAME} PRIVATE "${CMAKE_SOURCE_DIR}/libs")
target_include_directories(${LIBNAME} PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/../libs")

# link libraries in libs to this target
set(LINKLIBS gridboxes superdrops zarr)
Expand Down
2 changes: 1 addition & 1 deletion libs/runcleo/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ add_library("${LIBNAME}" SHARED ${SOURCES})

# add directories to include for target
target_include_directories(${LIBNAME} PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}")
target_include_directories(${LIBNAME} PRIVATE "${CMAKE_SOURCE_DIR}/libs")
target_include_directories(${LIBNAME} PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/../libs")

# link libraries in libs to this target
# Set libraries and compiler warnings to use
Expand Down
2 changes: 1 addition & 1 deletion libs/zarr/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ add_library(${LIBNAME} SHARED ${SOURCES})

# add directories to include for target
target_include_directories(${LIBNAME} PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}")
target_include_directories(${LIBNAME} PRIVATE "${CMAKE_SOURCE_DIR}/libs")
target_include_directories(${LIBNAME} PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/../libs")

# some compilation properties
set_target_properties(${LIBNAME} PROPERTIES
Expand Down

0 comments on commit 49001f3

Please sign in to comment.