Back to home page

sPhenix code displayed by LXR

 
 

    


Warning, /JETSCAPE/examples/unittests/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 ##############
0002 # Unit Tests
0003 ##############
0004 
0005 # tests:
0006 # Helper macro (from smash) that adds a run_<name> target
0007 macro(js_add_test name depends)
0008    add_test(NAME ${name} COMMAND ${ARGN})
0009    add_custom_target(run_${name}
0010       COMMAND ${ARGN} ${UNITTEST_ARGS}
0011       DEPENDS ${depends}
0012       COMMENT "Executing test ${name}"
0013       VERBATIM
0014       )
0015 endmacro()
0016 
0017 macro(js_add_exe name)
0018   add_executable(${name} ${name}.cc)
0019   target_link_libraries(${name} JetScape)
0020   target_link_libraries(${name} gtest gtest_main)
0021   target_link_libraries(${name} gtest gtest_main)
0022 endmacro()
0023 
0024 # this is the main func called by developer to add unittests
0025 macro(add_unittest name)
0026    js_add_exe(${name})
0027    js_add_test(${name} ${name} ${name})
0028 endmacro()
0029 
0030 
0031 # add your unittests after this line
0032 
0033 add_unittest(linear_interpolation)
0034 add_unittest(fluid_dynamics)
0035 add_unittest(causal_liquifier)
0036 add_unittest(LiquifierBase)