summaryrefslogtreecommitdiff
path: root/src/tests/eo_suite/CMakeLists.txt
blob: 8612cfcaecaf1ec9e7df1ff3d3d4c4eba038a112 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
if (CHECK_ENABLED)

   LIST(APPEND EO_SUITE_CC_SOURCES
      eo_suite.c
      eo_test_init.c
      eo_test_general.c
      eo_test_class_errors.c
      class_simple.c
      )

   add_executable(eo_suite ${EO_SUITE_CC_SOURCES})

   include_directories(
      ${EINA_INCLUDE_DIRS}
      ${CMAKE_SOURCE_DIR}/src/lib
      ${CHECK_INCLUDE_DIRS}
      )

   get_target_property(eo_LIB_FILE eo LOCATION)
   target_link_libraries(eo_suite
      ${EINA_LIBRARIES}
      ${EINA_LDFLAGS_OTHER}
      ${eo_LIB_FILE}
      ${CHECK_LIBRARIES}
      )

   add_test(eo_suite eo_suite)
   add_dependencies(check eo_suite)
endif (CHECK_ENABLED)