3 PKGCONFIG(sdl SDL_INCLUDE_DIR SDL_LIBRARY_DIR SDL_LINK_FLAGS SDL_CFLAGS)
4 PKGCONFIG(cairo CAIRO_INCLUDE_DIR CAIRO_LIBRARY_DIR CAIRO_LINK_FLAGS CAIRO_CFLAGS)
5 MESSAGE("CAIRO:${CAIRO_INCLUDE_DIR}")
7 LINK_DIRECTORIES(${SDL_LIBRARY_DIR} ${CAIRO_LIBRARY_DIR})
8 INCLUDE_DIRECTORIES(${SDL_INCLUDE_DIR} ${CAIRO_INCLUDE_DIR})
10 ADD_EXECUTABLE(ebulanci ebulanci.c geometry.c gr.c config.c map.c snd.c)
11 ADD_EXECUTABLE(kolize kolize.c geometry.c )
12 SET_TARGET_PROPERTIES(kolize PROPERTIES LINK_FLAGS "-lm")
13 SET_TARGET_PROPERTIES(ebulanci PROPERTIES LINK_FLAGS "${SDL_LINK_FLAGS} ${CAIRO_LINK_FLAGS} -lSDL_mixer -lsvg -lsvg-cairo -lm -lGL -lGLU")
14 SET_TARGET_PROPERTIES(ebulanci PROPERTIES COMPILE_FLAGS "${SDL_CFLAGS} ${CAIRO_CFLAGS}")