summaryrefslogtreecommitdiff
path: root/dispatch
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2014-06-25 13:46:35 +0100
committerJosé Fonseca <jfonseca@vmware.com>2014-06-25 13:46:35 +0100
commitc56b9acc6abcae465b916f6ebafa3a282d1f36fc (patch)
treea4a0a04879c4b48f23eddc33fb58ba8396143dd7 /dispatch
parente11baf1cb0a60855c975374890c497e3e5bbe4ab (diff)
cmake: Refactor all convenience library generation into a function.
Diffstat (limited to 'dispatch')
-rw-r--r--dispatch/CMakeLists.txt14
1 files changed, 2 insertions, 12 deletions
diff --git a/dispatch/CMakeLists.txt b/dispatch/CMakeLists.txt
index 0dad67fe..5892c700 100644
--- a/dispatch/CMakeLists.txt
+++ b/dispatch/CMakeLists.txt
@@ -29,27 +29,17 @@ add_custom_command (
add_custom_target (glproc DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/glproc.hpp)
-add_library (glproc_gl STATIC EXCLUDE_FROM_ALL
+add_convenience_library (glproc_gl EXCLUDE_FROM_ALL
glproc_gl.cpp
)
add_dependencies (glproc_gl glproc)
-set_target_properties (glproc_gl PROPERTIES
- # Ensure it can be statically linked in shared libraries
- COMPILE_FLAGS "${CMAKE_SHARED_LIBRARY_CXX_FLAGS}"
-)
-
if (ENABLE_EGL)
- add_library (glproc_egl STATIC EXCLUDE_FROM_ALL
+ add_convenience_library (glproc_egl EXCLUDE_FROM_ALL
glproc_egl.cpp
)
add_dependencies (glproc_egl glproc)
-
- set_target_properties (glproc_egl PROPERTIES
- # Ensure it can be statically linked in shared libraries
- COMPILE_FLAGS "${CMAKE_SHARED_LIBRARY_CXX_FLAGS}"
- )
endif ()