mirror of
https://github.com/LIV2/amiberry.git
synced 2025-12-06 06:32:45 +00:00
66 lines
2.0 KiB
CMake
66 lines
2.0 KiB
CMake
cmake_minimum_required(VERSION 3.16)
|
|
project(guisan VERSION 1.0 DESCRIPTION "Guisan")
|
|
add_library(guisan STATIC
|
|
src/actionevent.cpp
|
|
src/basiccontainer.cpp
|
|
src/cliprectangle.cpp
|
|
src/color.cpp
|
|
src/defaultfont.cpp
|
|
src/event.cpp
|
|
src/exception.cpp
|
|
src/focushandler.cpp
|
|
src/font.cpp
|
|
src/genericinput.cpp
|
|
src/graphics.cpp
|
|
src/gui.cpp
|
|
src/guisan.cpp
|
|
src/image.cpp
|
|
src/imagefont.cpp
|
|
src/inputevent.cpp
|
|
src/key.cpp
|
|
src/keyevent.cpp
|
|
src/keyinput.cpp
|
|
src/mouseevent.cpp
|
|
src/mouseinput.cpp
|
|
src/rectangle.cpp
|
|
src/selectionevent.cpp
|
|
src/widget.cpp
|
|
src/sdl/sdl.cpp
|
|
src/sdl/sdl2graphics.cpp
|
|
src/sdl/sdlgraphics.cpp
|
|
src/sdl/sdlimage.cpp
|
|
src/sdl/sdlimageloader.cpp
|
|
src/sdl/sdlinput.cpp
|
|
src/sdl/sdltruetypefont.cpp
|
|
src/widgets/button.cpp
|
|
src/widgets/checkbox.cpp
|
|
src/widgets/container.cpp
|
|
src/widgets/dropdown.cpp
|
|
src/widgets/icon.cpp
|
|
src/widgets/imagebutton.cpp
|
|
src/widgets/imagetextbutton.cpp
|
|
src/widgets/inputbox.cpp
|
|
src/widgets/label.cpp
|
|
src/widgets/listbox.cpp
|
|
src/widgets/messagebox.cpp
|
|
src/widgets/progressbar.cpp
|
|
src/widgets/radiobutton.cpp
|
|
src/widgets/scrollarea.cpp
|
|
src/widgets/slider.cpp
|
|
src/widgets/tab.cpp
|
|
src/widgets/tabbedarea.cpp
|
|
src/widgets/textbox.cpp
|
|
src/widgets/textfield.cpp
|
|
src/widgets/togglebutton.cpp
|
|
src/widgets/window.cpp)
|
|
target_include_directories(guisan PRIVATE ./include)
|
|
|
|
INCLUDE(FindPkgConfig)
|
|
|
|
PKG_SEARCH_MODULE(SDL2 REQUIRED sdl2)
|
|
PKG_SEARCH_MODULE(SDL2IMAGE REQUIRED SDL2_image>=2.0.0)
|
|
|
|
INCLUDE_DIRECTORIES(${SDL2_INCLUDE_DIRS} ${SDL2IMAGE_INCLUDE_DIRS})
|
|
TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${SDL2_LIBRARIES} ${SDL2IMAGE_LIBRARIES})
|
|
|
|
install(TARGETS guisan DESTINATION ./lib) |