diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index ecc7f71..f5a284a 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -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