mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-26 22:57:00 +02:00
a85b4cf2a5
* Hero portrait serialization * Fix town spells serialization * Added support for float exponential part in Json * Added support for int64 in Json * Added basic Hero definitions serialization * Added rumors serialization * Advanced player info serialization. * Added Disposed heroes serialization, (!) not covered with tests yet * Added Local event serialization * Added Pandoras box serialization * Added Seer hut reward serialization * Added CQuest serialization * Added API for map object instance names serialization. * Added random dwelling options serialization * Advanced town options serialization * Advanced hero options serialization * More map format tests * A lot of fixes, cleanup and refactoring
39 lines
1.2 KiB
CMake
39 lines
1.2 KiB
CMake
cmake_minimum_required(VERSION 2.8.7)
|
|
project(test)
|
|
enable_testing()
|
|
include_directories(${CMAKE_HOME_DIRECTORY} ${CMAKE_HOME_DIRECTORY}/include ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_HOME_DIRECTORY}/test)
|
|
include_directories(${Boost_INCLUDE_DIRS})
|
|
|
|
set(test_SRCS
|
|
StdInc.cpp
|
|
Battlefield.cpp
|
|
CVcmiTestConfig.cpp
|
|
CMapEditManagerTest.cpp
|
|
MapComparer.cpp
|
|
CMapFormatTest.cpp
|
|
)
|
|
|
|
add_executable(vcmitest ${test_SRCS})
|
|
target_link_libraries(vcmitest vcmi ${Boost_LIBRARIES} ${RT_LIB} ${DL_LIB})
|
|
add_test(vcmitest vcmitest)
|
|
|
|
set_target_properties(vcmitest PROPERTIES ${PCH_PROPERTIES})
|
|
cotire(vcmitest)
|
|
|
|
# Files to copy to the build directory
|
|
add_custom_target(vcmitestFiles ALL)
|
|
set(vcmitest_FILES
|
|
testdata/TerrainViewTest.h3m
|
|
testdata/terrainViewMappings.json
|
|
testdata/ObjectPropertyTest/header.json
|
|
testdata/ObjectPropertyTest/objects.json
|
|
testdata/ObjectPropertyTest/surface_terrain.json
|
|
testdata/ObjectPropertyTest/underground_terrain.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()
|