mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-26 22:57:00 +02:00
410ec92668
- removed unused functionality from CCreatureAnimation - simplified postioning of units in battle, should fix remaining issues with unit positioning - fixed unit tests compilation
29 lines
785 B
CMake
29 lines
785 B
CMake
cmake_minimum_required(VERSION 2.6)
|
|
|
|
enable_testing()
|
|
include_directories(${CMAKE_HOME_DIRECTORY} ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_HOME_DIRECTORY}/test)
|
|
include_directories(${Boost_INCLUDE_DIRS})
|
|
|
|
set(test_SRCS
|
|
StdInc.cpp
|
|
CVcmiTestConfig.cpp
|
|
CMapEditManagerTest.cpp
|
|
)
|
|
|
|
add_executable(vcmitest ${test_SRCS})
|
|
target_link_libraries(vcmitest vcmi ${Boost_LIBRARIES} ${RT_LIB} ${DL_LIB})
|
|
add_test(vcmitest vcmitest)
|
|
|
|
# Files to copy to the build directory
|
|
add_custom_target(vcmitestFiles ALL)
|
|
set(vcmitest_FILES
|
|
TerrainViewTest.h3m
|
|
terrainViewMappings.json
|
|
)
|
|
|
|
foreach(file ${vcmitest_FILES})
|
|
add_custom_command(TARGET vcmitestFiles POST_BUILD
|
|
COMMAND ${CMAKE_COMMAND} -E copy_if_different "${CMAKE_CURRENT_SOURCE_DIR}/${file}" ${CMAKE_CURRENT_BINARY_DIR}
|
|
)
|
|
endforeach()
|