CMake: link with javascriptcoregtk-4.0 when building static library
This commit is contained in:
parent
c2a7e6c946
commit
6327ab4e5e
1 changed files with 7 additions and 1 deletions
|
|
@ -9,6 +9,7 @@ SET( WEBKIT2_VERSION 4.0)
|
|||
|
||||
set(WEBKIT2_INCLUDE_DIR WEBKIT2_INCLUDE_DIR-NOTFOUND)
|
||||
set(WEBKIT2_LIBRARY WEBKIT2_LIBRARY-NOTFOUND)
|
||||
set(WEBKIT2_JS_LIBRARY WEBKIT2_JS_LIBRARY-NOTFOUND)
|
||||
set(WEBKIT2_LIBRARIES WEBKIT2_LIBRARIES-NOTFOUND)
|
||||
|
||||
FIND_PATH(WEBKIT2_INCLUDE_DIR webkit2/webkit2.h
|
||||
|
|
@ -20,6 +21,11 @@ FIND_LIBRARY(WEBKIT2_LIBRARY
|
|||
NAMES ${WEBKIT2_NAMES}
|
||||
)
|
||||
|
||||
SET(WEBKIT2_JS_NAMES "javascriptcoregtk-${WEBKIT2_VERSION}")
|
||||
FIND_LIBRARY(WEBKIT2_JS_LIBRARY
|
||||
NAMES ${WEBKIT2_JS_NAMES}
|
||||
)
|
||||
|
||||
# Handle the QUIETLY and REQUIRED arguments and set WEBKIT2_FOUND to
|
||||
# TRUE if all listed variables are TRUE.
|
||||
INCLUDE(FindPackageHandleStandardArgs)
|
||||
|
|
@ -29,7 +35,7 @@ FIND_PACKAGE_HANDLE_STANDARD_ARGS(
|
|||
)
|
||||
|
||||
IF(WEBKIT2_FOUND)
|
||||
SET( WEBKIT2_LIBRARIES ${WEBKIT2_LIBRARY} )
|
||||
SET( WEBKIT2_LIBRARIES ${WEBKIT2_LIBRARY} ${WEBKIT2_JS_LIBRARY} )
|
||||
ELSE(WEBKIT2_FOUND)
|
||||
SET( WEBKIT2_LIBRARIES )
|
||||
ENDIF(WEBKIT2_FOUND)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue