From 591c44b9a1a6e0a803b6d8af9e35aa8552b421c0 Mon Sep 17 00:00:00 2001 From: Gary Wang Date: Sat, 15 Jun 2019 15:21:32 +0800 Subject: DevIL support --- examples/CMakeLists.txt | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 examples/CMakeLists.txt (limited to 'examples') diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt new file mode 100644 index 0000000..4b1defa --- /dev/null +++ b/examples/CMakeLists.txt @@ -0,0 +1,32 @@ +option (USE_CXIMAGE "Use CxImage instead of DevIL" OFF) + +find_package(glfw3 3.2 REQUIRED) +find_package(GLEW REQUIRED) +find_package(OpenAL REQUIRED) +find_package(Freetype REQUIRED) + +if (NOT USE_CXIMAGE) + find_package(DevIL REQUIRED) +endif () + +add_executable(example + smelt_test.cpp) + +include_directories( + ${GLFW_INCLUDE_DIRS} + ${GLEW_INCLUDE_DIRS} + ${FREETYPE_INCLUDE_DIRS} +) + +target_link_libraries(example + glfw + ${GLEW_LIBRARIES} + ${OpenAL_LIBRARIES} + ${FREETYPE_LIBRARIES} + smelt smeltext +) + +get_cmake_property(__cmake_debug_var VARIABLES) +foreach (__var ${__cmake_debug_var}) + message(STATUS ">>> ${__var}=${${__var}}") +endforeach () -- cgit v1.2.3