summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChad Versace <chad.versace@linux.intel.com>2012-04-04 18:20:58 -0700
committerChad Versace <chad.versace@linux.intel.com>2012-04-08 12:37:34 -0700
commite069b60396f8e7726e824bdbd3745f30ec5c833b (patch)
treed4f899021530e64aa470d96ae09ce18eec2b2d65
parent3acbb5681a43e18cce1e34694773cfe18cc2391d (diff)
cmake: Install libwaffle.so and headers
Install libwaffle.so to ${waffle_install_libdir}. Install headers to ${waffle_install_includedir}/waffle. Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
-rw-r--r--CMakeLists.txt1
-rw-r--r--include/CMakeLists.txt12
-rw-r--r--src/waffle/CMakeLists.txt3
3 files changed, 16 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 67be257..a73aab8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -195,6 +195,7 @@ endif(waffle_has_x11_egl)
include_directories(include src)
add_subdirectory(src)
+add_subdirectory(include)
if(waffle_build_tests)
add_subdirectory(tests)
diff --git a/include/CMakeLists.txt b/include/CMakeLists.txt
new file mode 100644
index 0000000..5b53757
--- /dev/null
+++ b/include/CMakeLists.txt
@@ -0,0 +1,12 @@
+install(FILES waffle/waffle.h
+ waffle/waffle_attrib_list.h
+ waffle/waffle_config.h
+ waffle/waffle_context.h
+ waffle/waffle_display.h
+ waffle/waffle_enum.h
+ waffle/waffle_error.h
+ waffle/waffle_gl_misc.h
+ waffle/waffle_init.h
+ waffle/waffle_visibility.h
+ waffle/waffle_window.h
+ DESTINATION ${waffle_install_includedir}/waffle)
diff --git a/src/waffle/CMakeLists.txt b/src/waffle/CMakeLists.txt
index 2b055a1..267256e 100644
--- a/src/waffle/CMakeLists.txt
+++ b/src/waffle/CMakeLists.txt
@@ -57,3 +57,6 @@ set_target_properties(waffle
PROPERTIES
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
SOVERSION 0.0.0)
+
+install(TARGETS waffle
+ LIBRARY DESTINATION ${waffle_install_libdir})