aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorGravatar Gary Wang <wzc782970009@gmail.com> 2019-06-15 15:21:32 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2019-06-15 20:58:10 +0800
commit591c44b9a1a6e0a803b6d8af9e35aa8552b421c0 (patch)
tree8d422a4888c4371b0960bcdd5665d99b6f43b27a /examples
parent747c0db7910414d2797e38b5a00efbdb0c5ee6a1 (diff)
downloadSMELT-591c44b9a1a6e0a803b6d8af9e35aa8552b421c0.tar.xz
DevIL support
Diffstat (limited to 'examples')
-rw-r--r--examples/CMakeLists.txt32
1 files changed, 32 insertions, 0 deletions
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 ()