Make sure helper libraries get built as static libs
Make sure helper libraries get built as static libs regardless of the cmake version being used. This fixes issue 217. Signed-off-by: Bernhard Rosenkränzer <bero@lindev.ch>
This commit is contained in:
parent
e10a5fd0a5
commit
ee4d0b9c49
10 changed files with 12 additions and 9 deletions
|
|
@ -20,5 +20,5 @@ if ("${cmake_build_type_lower}" STREQUAL "trace")
|
|||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OPENGL_DEBUG}")
|
||||
endif()
|
||||
|
||||
add_library(GLESv1_dec ${SOURCES} ${GENERATED_SOURCES})
|
||||
add_library(GLESv1_dec STATIC ${SOURCES} ${GENERATED_SOURCES})
|
||||
target_link_libraries(GLESv1_dec OpenglCodecCommon)
|
||||
|
|
|
|||
|
|
@ -20,5 +20,5 @@ if ("${cmake_build_type_lower}" STREQUAL "trace")
|
|||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OPENGL_DEBUG}")
|
||||
endif()
|
||||
|
||||
add_library(GLESv2_dec ${SOURCES} ${GENERATED_SOURCES})
|
||||
add_library(GLESv2_dec STATIC ${SOURCES} ${GENERATED_SOURCES})
|
||||
target_link_libraries(GLESv2_dec OpenglCodecCommon)
|
||||
|
|
|
|||
|
|
@ -12,6 +12,6 @@ set(SOURCES
|
|||
objectNameManager.cpp
|
||||
FramebufferData.cpp)
|
||||
|
||||
add_library(GLcommon ${SOURCES})
|
||||
add_library(GLcommon STATIC ${SOURCES})
|
||||
target_link_libraries(GLcommon
|
||||
emugl_common)
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ set(SOURCES
|
|||
GLESv2Dispatch.cpp
|
||||
GLESv1Dispatch.cpp)
|
||||
|
||||
add_library(OpenGLESDispatch ${SOURCES} ${GENERATED_SOURCES})
|
||||
add_library(OpenGLESDispatch STATIC ${SOURCES} ${GENERATED_SOURCES})
|
||||
target_link_libraries(OpenGLESDispatch
|
||||
emugl_common
|
||||
GLESv2_dec
|
||||
|
|
|
|||
|
|
@ -16,5 +16,5 @@ if ("${cmake_build_type_lower}" STREQUAL "trace")
|
|||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OPENGL_DEBUG}")
|
||||
endif()
|
||||
|
||||
add_library(renderControl_dec ${GENERATED_SOURCES})
|
||||
add_library(renderControl_dec STATIC ${GENERATED_SOURCES})
|
||||
target_link_libraries(renderControl_dec OpenglCodecCommon)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue