-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
58 additions
and
467 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,26 @@ | ||
cmake_minimum_required (VERSION 3.11) | ||
|
||
add_flags("-Wall -Wextra -Werror -Wpedantic") | ||
include_directories (BEFORE include/) | ||
include_directories (AFTER .) | ||
|
||
find_package(Threads QUIET REQUIRED) | ||
find_package(sisl QUIET REQUIRED) | ||
find_package(homestore QUIET REQUIRED) | ||
|
||
link_directories(${spdk_LIB_DIRS} ${dpdk_LIB_DIRS}) | ||
|
||
set (COMMON_DEPS | ||
homestore::homestore | ||
sisl::sisl | ||
) | ||
list(APPEND COMMON_DEPS homestore::homestore) | ||
|
||
set(COMMON_TEST_DEPS | ||
${COMMON_DEPS} | ||
GTest::gmock | ||
${spdk_LIBRARY_LIST} | ||
${dpdk_LIBRARY_LIST} | ||
) | ||
add_flags("-Wall -Wextra -Werror -Wpedantic") | ||
|
||
include_directories (BEFORE .) | ||
include_directories (BEFORE include/) | ||
include_directories(BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/include) | ||
include_directories(BEFORE ${CMAKE_CURRENT_BINARY_DIR}/lib) | ||
if(BUILD_TESTING) | ||
# This is a work-around for not being able to specify the link | ||
# order in a conan recipe. We link these explicitly and thus | ||
# need to specify the LINK path. They should only be needed | ||
# to build a DSO (test executable) however. | ||
link_directories(${spdk_LIB_DIRS} ${dpdk_LIB_DIRS}) | ||
list(APPEND COMMON_TEST_DEPS | ||
${COMMON_DEPS} | ||
GTest::gmock | ||
${spdk_LIBRARY_LIST} | ||
${dpdk_LIBRARY_LIST} | ||
) | ||
endif() | ||
|
||
add_subdirectory(lib) | ||
#add_subdirectory(mocks) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.