aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
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 ()