Files
azerothcore-wotlk/src/test/CMakeLists.txt

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
)