summaryrefslogtreecommitdiffstats
path: root/test/CMakeLists.txt
blob: bad2b5826c2934d29d7bd5133668830c8e07c710 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
add_definitions(${GEE_CFLAGS} ${GEE_CFLAGS_OTHER} ${GIO_CFLAGS} ${GIO_CFLAGS_OTHER} ${GIO_UNIX_CFLAGS} ${GIO_UNIX_CFLAGS_OTHER} ${ERL_CFLAGS} ${ERL_CFLAGS_OTHER})
link_libraries(${GEE_LIBRARIES} ${GIO_LIBRARIES} ${GIO_UNIX_LIBRARIES} ${ERL_LIBRARIES})
link_directories(${GEE_LIBRARY_DIRS} ${GIO_LIBRARY_DIRS} ${GIO_UNIX_LIBRARY_DIRS} ${ERL_LIBRARY_DIRS})

vala_precompile(TEST_C
  Test.vala
PACKAGES
  gee-1.0
  gio-2.0
  gio-unix-2.0
  erl_interface
CUSTOM_VAPIS
  ${eva_BINARY_DIR}/src/eva.vapi
)

include_directories(BEFORE ${eva_BINARY_DIR}/src)
add_executable(eva-test ${TEST_C})
target_link_libraries(eva-test eva)