Tests fixed into working order
This commit is contained in:
@@ -1,18 +1,17 @@
|
|||||||
project(tests)
|
project(tests)
|
||||||
|
|
||||||
|
find_package(PNG REQUIRED)
|
||||||
find_package(Boost REQUIRED COMPONENTS chrono thread unit_test_framework)
|
find_package(Boost REQUIRED COMPONENTS chrono thread unit_test_framework)
|
||||||
|
|
||||||
include_directories(
|
include_directories(
|
||||||
${CMAKE_SOURCE_DIR}/include
|
${CMAKE_SOURCE_DIR}/include
|
||||||
|
${PNG_INCLUDE_DIRS}
|
||||||
${Boost_INCLUDE_DIRS}
|
${Boost_INCLUDE_DIRS}
|
||||||
)
|
)
|
||||||
|
|
||||||
set(SOURCE_FILES
|
|
||||||
main.cpp
|
file(GLOB SOURCE_FILES
|
||||||
FileWatcherTest.cpp
|
"*.cpp"
|
||||||
EventTest.cpp
|
|
||||||
ComponentCopyTest.cpp
|
|
||||||
EntityCloneTest.cpp
|
|
||||||
)
|
)
|
||||||
|
|
||||||
if(CMAKE_COMPILER_IS_GNUCXX)
|
if(CMAKE_COMPILER_IS_GNUCXX)
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ struct EventFixture
|
|||||||
// Publish the event
|
// Publish the event
|
||||||
this->EventBroker->Publish(Before);
|
this->EventBroker->Publish(Before);
|
||||||
// Clear to swap buffers
|
// Clear to swap buffers
|
||||||
this->EventBroker->Clear();
|
this->EventBroker->Swap();
|
||||||
// Process the event
|
// Process the event
|
||||||
this->EventBroker->template Process<EventFixture>();
|
this->EventBroker->template Process<EventFixture>();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user