Fixes memory leak in EN_addnode() (#455)
* Fixing memory leak in EN_addnode() * Separating test_net_builder from test_toolkit Making test_net_builder a standalone test * Removing BOOST_TEST_MAIN * Work in progress
This commit is contained in:
@@ -16,6 +16,14 @@ if(UNIX)
|
||||
endif(UNIX)
|
||||
|
||||
|
||||
add_executable(test_net_builder test_net_builder.cpp)
|
||||
target_link_libraries(test_net_builder ${Boost_LIBRARIES} epanet2)
|
||||
add_test(NAME test_net_builder
|
||||
COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/test_net_builder
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/data)
|
||||
|
||||
|
||||
|
||||
set(toolkit_test_srcs
|
||||
test_toolkit.cpp
|
||||
test_project.cpp
|
||||
@@ -30,13 +38,10 @@ set(toolkit_test_srcs
|
||||
test_pattern.cpp
|
||||
test_curve.cpp
|
||||
test_control.cpp
|
||||
test_net_builder.cpp
|
||||
)
|
||||
|
||||
add_executable(test_toolkit ${toolkit_test_srcs})
|
||||
|
||||
target_link_libraries(test_toolkit ${Boost_LIBRARIES} epanet2)
|
||||
|
||||
add_test(NAME test_toolkit
|
||||
COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/test_toolkit
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/data)
|
||||
|
||||
Reference in New Issue
Block a user