Skip to content

Commit

Permalink
Adding renderdriver to sources, changing sources to a variable
Browse files Browse the repository at this point in the history
  • Loading branch information
mobius3 committed Nov 5, 2014
1 parent 354b42a commit c84a94b
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,32 @@ set(API_HEADERS
KW_textrenderer.h
KW_widget.h
KW_scrollbox.h
KW_renderdriver_sdl2.h
KW_renderdriver.h
)

set(LIB_SOURCES
KW_scrollbox_internal.c
KW_scrollbox.c
KW_editbox_internal.c
utf8.c
KW_editbox.c
KW_eventwatcher.c
KW_button.c
KW_textrenderer.c
KW_label.c
KW_label_internal.c
KW_gui.c
KW_frame.c
KW_frame_internal.c
KW_tilerenderer.c
KW_widget.c
KW_widget_eventhandlers.c
KW_renderdriver_sdl2.c
)

include_directories(${SDL2_INCLUDE_DIR})
add_library(KiWi SHARED KW_scrollbox_internal.c KW_scrollbox.c KW_editbox_internal.c utf8.c KW_editbox.c KW_eventwatcher.c KW_button.c KW_textrenderer.c KW_label.c KW_label_internal.c KW_gui.c KW_frame.c KW_frame_internal.c KW_tilerenderer.c KW_widget.c KW_widget_eventhandlers.c)
add_library(KiWi SHARED ${LIB_SOURCES})
target_link_libraries(KiWi ${SDL2_LIBRARIES} ${SDL2_TTF_LIBRARIES})

# Configure install stuff
Expand Down

0 comments on commit c84a94b

Please sign in to comment.