Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/CMakeLists.txt
| Show First 20 Lines • Show All 680 Lines • ▼ Show 20 Lines | |||||
| # if(MSVC) | # if(MSVC) | ||||
| # set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /WX") | # set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /WX") | ||||
| # endif() | # endif() | ||||
| blender_add_lib(bf_blenkernel "${SRC}" "${INC}" "${INC_SYS}" "${LIB}") | blender_add_lib(bf_blenkernel "${SRC}" "${INC}" "${INC_SYS}" "${LIB}") | ||||
| # Needed so we can use dna_type_offsets.h for defaults initialization. | # Needed so we can use dna_type_offsets.h for defaults initialization. | ||||
| add_dependencies(bf_blenkernel bf_dna) | add_dependencies(bf_blenkernel bf_dna) | ||||
| if(WITH_GTESTS) | |||||
| set(TEST_SRC | |||||
| intern/armature_test.cc | |||||
| intern/fcurve_test.cc | |||||
| ) | |||||
| set(TEST_INC | |||||
| ../editors/include | |||||
| ) | |||||
brecht: Maybe this indicates the test should actually be located in `editors/animation`, or the tested… | |||||
Done Inline ActionsIt is for calling insert_vert_fcurve(), to get some keyframes in the fcurve to make it possible to do interpolation/extrapolation/evaluation tests. And yes, I agree it would be good to have such functions in blenkernel instead. I have added a note about this in my personal Code Quality Day ideas wiki page. sybren: It is for calling `insert_vert_fcurve()`, to get some keyframes in the fcurve to make it… | |||||
| include(GTestTesting) | |||||
Done Inline ActionsCan this be moved into blender_add_test_lib, or is it only needed for BKE tests? brecht: Can this be moved into `blender_add_test_lib`, or is it only needed for BKE tests? | |||||
| blender_add_test_lib(bf_blenkernel_tests "${TEST_SRC}" "${INC};${TEST_INC}" "${INC_SYS}" "${LIB}") | |||||
| endif() | |||||
Maybe this indicates the test should actually be located in editors/animation, or the tested code should be moved into blenkernel at some point