add ui.hdll building to CMakeLists.txt
@@ -135,6 +135,26 @@ add_custom_target(hello.hl ALL
DEPENDS ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/hello.hl
)
+#####################
+# ui.hdll
+
+add_library(ui.hdll MODULE libs/ui/ui_stub.c)
+
+if (WIN32)
+ set_target_properties(ui.hdll PROPERTIES SOURCES libs/ui/ui_win.c)
+endif()
+
+set_target_properties(ui.hdll
+ PROPERTIES
+ PREFIX ""
+ OUTPUT_NAME ui
+ SUFFIX .hdll
+)
+
+target_link_libraries(ui.hdll
+ libhl
+)
+
#####################
# sdl.hdll
