stuff-from-scratch/src/windows/CMakeLists.txt

41 lines
1.5 KiB
CMake
Raw Normal View History

2021-09-26 20:42:35 +00:00
set (platform_INCLUDES "")
set (platform_LIBS "")
if(UNIX)
list(APPEND platform_INCLUDES
2020-05-02 07:31:03 +00:00
ui_interfaces/x11/XcbInterface.cpp
2021-04-17 12:57:14 +00:00
ui_interfaces/x11/XcbEventInterface.cpp
ui_interfaces/x11/XcbWindow.cpp
ui_interfaces/x11/XcbScreen.cpp
ui_interfaces/x11/XcbWindowInterface.cpp
2020-05-02 07:31:03 +00:00
ui_interfaces/x11/XcbLayerInterface.cpp
ui_interfaces/x11/XcbTextInterface.cpp
ui_interfaces/x11/XcbKeyboard.cpp
ui_interfaces/x11/GlxInterface.cpp)
2021-09-26 20:42:35 +00:00
list(APPEND platform_LIBS
X11 X11-xcb xcb )
endif()
2020-05-02 07:31:03 +00:00
2020-07-04 18:43:08 +00:00
list(APPEND windows_LIB_INCLUDES
managers/WindowManager.cpp
managers/DesktopManager.cpp
managers/EventManager.cpp)
2020-05-02 07:31:03 +00:00
# add the library
2021-09-26 20:42:35 +00:00
add_library(windows SHARED ${windows_LIB_INCLUDES} ${platform_INCLUDES})
2020-05-02 07:31:03 +00:00
target_include_directories(windows PUBLIC
"${CMAKE_CURRENT_SOURCE_DIR}"
"${CMAKE_CURRENT_SOURCE_DIR}/managers"
"${CMAKE_CURRENT_SOURCE_DIR}/ui_interfaces/x11"
"${PROJECT_SOURCE_DIR}/src/geometry"
"${PROJECT_SOURCE_DIR}/src/graphics"
2020-05-02 07:31:03 +00:00
"${PROJECT_SOURCE_DIR}/src/ui_elements"
"${PROJECT_SOURCE_DIR}/src/ui_elements/widgets"
)
2020-07-04 18:43:08 +00:00
2021-09-26 20:42:35 +00:00
target_link_libraries(windows PUBLIC ${platform_LIBS} core geometry graphics ui_elements)
2020-07-04 18:43:08 +00:00
set_property(TARGET windows PROPERTY FOLDER src)
set_target_properties( windows PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS ON )