Jan: Do you have cppunit?
if (CPPUNIT_FOUND)
# Add test but do not add to default target
add_subdirectory(test EXCLUDE_FROM_ALL)
# Add target "tests" for building tests
add_custom_target(tests
COMMAND ${MAKE_PROGRAM}
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/test")
endif()
On 23 October 2015 at 10:56, Garth N. Wells <[email protected]> wrote:
>
> On 23 October 2015 at 09:53, Jan Blechta <[email protected]>
> wrote:
>
>> I can't find a way how to generate target 'tests' in DOLFIN which is
>> needed to run C++ unit tests (target 'run_unittests_cpp'):
>>
>>
> Strange - I have a make target 'tests'.
>
> Garth
>
>
>> $ cd <dolfin>
>> $ mkdir -p $BUILDDIR
>> $ cd $BUILDDIR
>> $ cmake -DCMAKE_INSTALL_PREFIX=$INSTALLDIR \
>> -DDOLFIN_ENABLE_TESTING:BOOL=ON \
>> -DDOLFIN_ENABLE_UNIT_TESTS:BOOL=ON \
>> -DDOLFIN_ENABLE_BENCHMARKS:BOOL=ON \
>> -DCMAKE_BUILD_TYPE:STRING=Developer \
>> -DDOLFIN_DEPRECATION_ERROR:BOOL=ON \
>> ..
>>
>> $ make tests
>> make: *** No rule to make target 'tests'. Stop.
>>
>> Strange is that this seems to work on buildbots. Any clues?
>> _______________________________________________
>> fenics mailing list
>> [email protected]
>> http://fenicsproject.org/mailman/listinfo/fenics
>>
>
>
> _______________________________________________
> fenics mailing list
> [email protected]
> http://fenicsproject.org/mailman/listinfo/fenics
>
>
_______________________________________________
fenics mailing list
[email protected]
http://fenicsproject.org/mailman/listinfo/fenics