2
0

xmake.lua 694 B

123456789101112131415161718192021222324252627
  1. add_rules("mode.debug", "mode.release")
  2. set_languages("c++11")
  3. target("cppunit")
  4. set_kind("$(kind)")
  5. add_files("src/cppunit/*.cpp|DllMain.cpp")
  6. add_includedirs("include", {public = true})
  7. add_headerfiles("include/(cppunit/**.h)")
  8. if is_kind("shared") then
  9. add_defines("CPPUNIT_BUILD_DLL")
  10. add_defines("CPPUNIT_DLL", {interface = true})
  11. end
  12. if is_plat("windows", "mingw", "msys", "cygwin") then
  13. add_files("src/cppunit/DllMain.cpp")
  14. end
  15. target("DllPlugInTester")
  16. set_kind("binary")
  17. add_files(
  18. "src/DllPlugInTester/CommandLineParser.cpp",
  19. "src/DllPlugInTester/DllPlugInTester.cpp"
  20. )
  21. add_deps("cppunit")