| 1234567891011121314151617181920212223242526272829303132333435363738 |
- #######################################
- # Add test subdirectories #
- #######################################
- #######################################
- # Add test includes #
- #######################################
- add_test_includes()
- opener_common_includes()
- ###################################################
- # Copy custom test output file to binary location #
- ###################################################
- #configure_file( CTestCustom.cmake ${PROJECT_BINARY_DIR}/CTestCustom.cmake )
- add_subdirectory( cip )
- add_subdirectory( ports )
- add_subdirectory( enet_encap )
- add_subdirectory( utils )
- add_executable( OpENer_Tests OpENerTests.cpp )
- find_library ( CPPUTEST_LIBRARY CppUTest ${CPPUTEST_HOME}/cpputest_build/lib )
- find_library ( CPPUTESTEXT_LIBRARY CppUTestExt ${CPPUTEST_HOME}/cpputest_build/lib )
- target_link_libraries( OpENer_Tests rt )
- target_link_libraries( OpENer_Tests gcov ${CPPUTEST_LIBRARY} ${CPPUTESTEXT_LIBRARY} )
- target_link_libraries( OpENer_Tests UtilsTest Utils )
- target_link_libraries( OpENer_Tests EthernetEncapsulationTest ENET_ENCAP )
- target_link_libraries( OpENer_Tests CipTest CIP )
- target_link_libraries( OpENer_Tests PortsTest PLATFORM_GENERIC )
- ########################################
- # Adds test to CTest environment #
- ########################################
- add_test(OpENer_Tests ${EXECUTABLE_OUTPUT_PATH}/OpENer_Tests -v -c)
|