2
0

CMakeLists.txt 495 B

123456789101112131415161718192021
  1. set(SAMPLE_NAME "demo")
  2. set(TARGET_NAME "${RMLUI_SAMPLE_PREFIX}${SAMPLE_NAME}")
  3. add_executable(${TARGET_NAME} WIN32
  4. src/main.cpp
  5. src/DemoEventListener.cpp
  6. src/DemoEventListener.h
  7. src/DemoWindow.cpp
  8. src/DemoWindow.h
  9. )
  10. set_common_target_options(${TARGET_NAME})
  11. target_link_libraries(${TARGET_NAME} PRIVATE rmlui_shell)
  12. install_sample_target(${TARGET_NAME})
  13. if(MSVC)
  14. # Set UTF-8 on MSVC to properly encode emoji characters.
  15. target_compile_options(${TARGET_NAME} PRIVATE /utf-8)
  16. endif()