add CMake build rules for OpenKTG #6

Merged
merged 1 commit into from Apr 17, 2012
View
21 ktg/CMakeLists.txt
@@ -0,0 +1,21 @@
+#
+# OpenKTG CMake build rules
+#
+project(OpenKTG)
+
+cmake_minimum_required(VERSION 2.8)
+
+#
+# libOpenKTG: texture generator library
+set(openKTG_SOURCES gentexture.cpp)
+set(openKTG_HEADERS gentexture.hpp types.hpp)
+
+add_library(OpenKTG ${openKTG_SOURCES})
+
+install(TARGETS OpenKTG ARCHIVE DESTINATION lib)
+install(FILES ${openKTG_HEADERS} DESTINATION include/OpenKTG)
+
+#
+# demo executable
+add_executable(demo demo.cpp)
+target_link_libraries(demo OpenKTG)