Skip to content

Commit

Permalink
Update unit tests to new add_modulefiles
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthapz committed Jul 31, 2022
1 parent 7788ec5 commit 8d8127b
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 11 deletions.
3 changes: 2 additions & 1 deletion tests/projects/c++/modules/class/xmake.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
set_languages("c++20")
target("class")
set_kind("binary")
add_files("src/*.cpp", "src/*.mpp")
add_modulefiles("src/*.mpp")
add_files("src/*.cpp")
3 changes: 2 additions & 1 deletion tests/projects/c++/modules/dependence/xmake.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
set_languages("c++20")
target("dependence")
set_kind("binary")
add_files("src/*.cpp", "src/*.mpp")
add_modulefiles("src/*.mpp")
add_files("src/*.cpp")
3 changes: 2 additions & 1 deletion tests/projects/c++/modules/dependence2/xmake.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
set_languages("c++20")
target("dependence")
set_kind("binary")
add_files("src/*.cpp", "src/*.mpp")
add_modulefiles("src/*.mpp")
add_files("src/*.cpp")
3 changes: 2 additions & 1 deletion tests/projects/c++/modules/hello with spaces/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ add_rules("mode.release", "mode.debug")
set_languages("c++20")
target("A hello")
set_kind("binary")
add_files("src/*.cpp", "src/*.mpp")
add_modulefiles("src/*.mpp")
add_files("src/*.cpp")
3 changes: 2 additions & 1 deletion tests/projects/c++/modules/hello/xmake.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
set_languages("c++20")
target("hello")
set_kind("binary")
add_files("src/*.cpp", "src/*.mpp")
add_modulefiles("src/*.mpp")
add_files("src/*.cpp")
3 changes: 2 additions & 1 deletion tests/projects/c++/modules/impl_unit/xmake.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
set_languages("c++20")
target("impl_unit")
set_kind("binary")
add_files("src/*.cpp", "src/*.mpp")
add_modulefiles("src/*.mpp")
add_files("src/*.cpp")
3 changes: 2 additions & 1 deletion tests/projects/c++/modules/inline_and_template/xmake.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
set_languages("c++20")
target("inline_and_template")
set_kind("binary")
add_files("src/*.cpp", "src/*.mpp")
add_modulefiles("src/*.mpp")
add_files("src/*.cpp")
3 changes: 2 additions & 1 deletion tests/projects/c++/modules/partitions/xmake.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
set_languages("c++20")
target("math")
set_kind("binary")
add_files("src/*.cpp", "src/*.mpp")
add_modulefiles("src/*.mpp")
add_files("src/*.cpp")
2 changes: 1 addition & 1 deletion tests/projects/c++/modules/staticlib/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ set_languages("c++20")

target("mod")
set_kind("static")
add_files("src/mod.mpp", "src/mod.cpp")
add_modulefiles("src/mod.mpp", "src/mod.cpp")

target("test")
set_kind("binary")
Expand Down
3 changes: 2 additions & 1 deletion tests/projects/c++/modules/submodules/xmake.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
set_languages("c++20")
target("math")
set_kind("binary")
add_files("src/*.cpp", "src/*.mpp")
add_modulefiles("src/*.mpp")
add_files("src/*.cpp")
3 changes: 2 additions & 1 deletion tests/projects/c++/modules/submodules2/xmake.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
set_languages("c++20")
target("math")
set_kind("binary")
add_files("src/*.cpp", "src/*.mpp")
add_modulefiles("src/*.mpp")
add_files("src/*.cpp")

0 comments on commit 8d8127b

Please sign in to comment.