Eo: add autotools tests. I have plenty of errors with the unit tests on Windows
[profile/ivi/eobj.git] / src / tests / eo_suite / CMakeLists.txt
1 if (CHECK_ENABLED)
2
3    LIST(APPEND EO_SUITE_CC_SOURCES
4       eo_suite.c
5       eo_test_init.c
6       eo_test_general.c
7       eo_test_class_errors.c
8       class_simple.c
9       )
10
11    add_executable(eo_suite ${EO_SUITE_CC_SOURCES})
12
13    include_directories(
14       ${EINA_INCLUDE_DIRS}
15       ${CMAKE_SOURCE_DIR}/src/lib
16       ${CHECK_INCLUDE_DIRS}
17       )
18
19    get_target_property(eo_LIB_FILE eo LOCATION)
20    target_link_libraries(eo_suite
21       ${EINA_LIBRARIES}
22       ${EINA_LDFLAGS_OTHER}
23       ${eo_LIB_FILE}
24       ${CHECK_LIBRARIES}
25       )
26
27    add_test(eo_suite eo_suite)
28    add_dependencies(eo_suite eo)
29    add_dependencies(check eo_suite)
30 endif (CHECK_ENABLED)