1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-03-02 23:09:40 +00:00

purge unnecessary cmake cruft

This commit is contained in:
Bret Curtis 2023-05-02 09:24:08 +02:00
parent 2a98519451
commit df06e0d7b9
4 changed files with 1 additions and 13 deletions

View file

@ -6,9 +6,6 @@ source_group(apps\\openmw-iniimporter-tests FILES ${INIIMPORTER_TESTS_SRC_FILES}
openmw_add_executable(openmw-iniimporter-tests ${INIIMPORTER_TESTS_SRC_FILES})
target_include_directories(openmw-iniimporter-tests SYSTEM PRIVATE ${GTEST_INCLUDE_DIRS})
target_include_directories(openmw-iniimporter-tests SYSTEM PRIVATE ${GMOCK_INCLUDE_DIRS})
target_link_libraries(openmw-iniimporter-tests PRIVATE
GTest::GTest
GMock::GMock

View file

@ -41,11 +41,8 @@ int runBinary(
const std::filesystem::path& binaryPath, const std::filesystem::path& iniPath, const std::filesystem::path& cfgPath)
{
#ifdef _WIN32
std::wstring wBinaryPath = binaryPath.native();
std::wstring wIniPath = iniPath.native();
std::wstring wCfgPath = cfgPath.native();
std::wstringstream cmd;
cmd << wBinaryPath << L" -i " << wIniPath << L" -c " << wCfgPath;
cmd << binaryPath.native() << L" -i " << iniPath.native() << L" -c " << cfgPath.native();
return _wsystem(cmd.str().c_str());
#else
std::stringstream cmd;

View file

@ -8,9 +8,6 @@ source_group(apps\\openmw-cs-tests FILES ${OPENCS_TESTS_SRC_FILES})
openmw_add_executable(openmw-cs-tests ${OPENCS_TESTS_SRC_FILES})
target_include_directories(openmw-cs-tests SYSTEM PRIVATE ${GTEST_INCLUDE_DIRS})
target_include_directories(openmw-cs-tests SYSTEM PRIVATE ${GMOCK_INCLUDE_DIRS})
target_link_libraries(openmw-cs-tests PRIVATE
openmw-cs-lib
GTest::GTest

View file

@ -1,6 +1,3 @@
include_directories(SYSTEM ${GTEST_INCLUDE_DIRS})
include_directories(SYSTEM ${GMOCK_INCLUDE_DIRS})
file(GLOB UNITTEST_SRC_FILES
testing_util.hpp