mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-21 12:47:07 +00:00
33 lines
586 B
CMake
33 lines
586 B
CMake
#
|
|
# Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license: https://github.com/azerothcore/azerothcore-wotlk/blob/master/LICENSE-AGPL3
|
|
#
|
|
|
|
CollectSourceFiles(
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
PRIVATE_SOURCES
|
|
)
|
|
|
|
include_directories(
|
|
"mocks"
|
|
)
|
|
|
|
add_executable(
|
|
unit_tests
|
|
${PRIVATE_SOURCES}
|
|
)
|
|
|
|
target_link_libraries(
|
|
unit_tests
|
|
game
|
|
gtest_main
|
|
gmock_main
|
|
game-interface
|
|
)
|
|
|
|
add_test(
|
|
NAME
|
|
unit
|
|
COMMAND
|
|
${CMAKE_BINARY_DIR}/src/test/unit_tests
|
|
)
|