Skip to content
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

Tests on windows #83

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Place generated driver_config.hpp in build dir
It's best practice to not modify the source during a build so a single
source folder can be used to build multiple variations. Especially with
WSL on Windows this makes it very easy to verify code changes work even
across platforms.
SeverinLeonhardt committed Jun 16, 2023
commit 658f12f4bb8c1e0847db6de6a2768ccce51e2ff1
3 changes: 2 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -129,7 +129,8 @@ set(HAVE_ZLIB ${CASS_USE_ZLIB})
# Generate the driver_config.hpp file
configure_file(
${CASS_ROOT_DIR}/driver_config.hpp.in
${CMAKE_CURRENT_SOURCE_DIR}/driver_config.hpp)
${CMAKE_CURRENT_BINARY_DIR}/generated/driver_config.hpp)
list(APPEND INCLUDE_DIRS ${CMAKE_CURRENT_BINARY_DIR}/generated)


#------------------------------
1 change: 1 addition & 0 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -48,6 +48,7 @@ include_directories(${CASS_ROOT_DIR}/tests/src/vendor)
include_directories(${CASS_INCLUDE_DIR})
include_directories(${CASS_SRC_DIR})
include_directories(${CASS_SRC_DIR}/third_party/sparsehash/src)
include_directories(${CMAKE_CURRENT_BINARY_DIR}/../src/generated)

set(GOOGLE_TEST_DIR ${CASS_ROOT_DIR}/tests/src/vendor/gtest)
set(GOOGLE_TEST_HEADER_FILES "${GOOGLE_TEST_DIR}/gtest.h")