Skip to content

Commit

Permalink
add submodules
Browse files Browse the repository at this point in the history
  • Loading branch information
Amazingkivas committed Oct 17, 2024
1 parent c65c9c3 commit a5dc89e
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[submodule "3rdparty/googletest"]
path = 3rdparty/googletest
url = https://github.com/google/googletest
[submodule "3rdparty/kokkos"]
path = 3rdparty/kokkos
url = https://github.com/kokkos/kokkos
1 change: 1 addition & 0 deletions 3rdparty/googletest
Submodule googletest added at df1544
1 change: 1 addition & 0 deletions 3rdparty/kokkos
Submodule kokkos added at 3fe17d
2 changes: 1 addition & 1 deletion sln/gtest/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
set(target "gtest")

add_library(${target} STATIC ../../gtest/gtest-all.cc)
add_library(${target} STATIC ../../3rdparty/googletest/googletest/src/gtest-all.cc)

if((${CMAKE_CXX_COMPILER_ID} MATCHES "GNU" OR
${CMAKE_CXX_COMPILER_ID} MATCHES "Clang") AND
Expand Down
2 changes: 1 addition & 1 deletion sln/test_FDTD_method/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
set(target test_FDTD_method)

file(GLOB hdrs "*.h*" "../../include/*.h" "../../gtest/*.h")
file(GLOB hdrs "*.h*" "../../include/*.h" "../../3rdparty/googletest/googletest/include/gtest/gtest.h")
#file(GLOB hdrs "*.h*")
file(GLOB srcs "*.cpp" "../../src/*.cpp" "../../test/*.cpp")

Expand Down

0 comments on commit a5dc89e

Please sign in to comment.