Tweak a few more cmake files to find third partt libraries for standalone build.
parent
7c8abbacb1
commit
e4c289cbed
|
|
@ -2,11 +2,20 @@
|
|||
include (Prebuilt)
|
||||
|
||||
if (USESYSTEMLIBS)
|
||||
find_path(COLLADA_INCLUDE_DIRS 1.4/dom/domConstants.h
|
||||
PATH_SUFFIXES collada collada-dom2.4)
|
||||
set(COLLADA_INCLUDE_DIRS
|
||||
${COLLADA_INCLUDE_DIRS} ${COLLADA_INCLUDE_DIRS}/1.4
|
||||
)
|
||||
include(FindPkgConfig)
|
||||
pkg_check_modules( MINIZIP REQUIRED minizip )
|
||||
pkg_check_modules( LIBXML2 REQUIRED libxml-2.0 )
|
||||
pkg_check_modules( LIBPCRECPP REQUIRED libpcrecpp )
|
||||
|
||||
find_library( COLLADADOM_LIBRARY collada14dom )
|
||||
find_path( COLLADADOM_INCLUDE_DIR colladadom/dae.h )
|
||||
|
||||
if( COLLADADOM_INCLUDE_DIR STREQUAL "COLLADADOM_INCLUDE_DIR-NOTFOUND" )
|
||||
message( FATAL_ERROR "Cannot find colladadom include dir" )
|
||||
endif()
|
||||
|
||||
set( COLLADA_INCLUDE_DIRS ${COLLADADOM_INCLUDE_DIR}/colladadom ${COLLADADOM_INCLUDE_DIR}/colladadom/1.4 )
|
||||
|
||||
else (USESYSTEMLIBS)
|
||||
set(COLLADA_INCLUDE_DIRS
|
||||
${LIBS_PREBUILT_DIR}/include/collada
|
||||
|
|
|
|||
|
|
@ -364,10 +364,9 @@ copy_if_different(
|
|||
)
|
||||
set(third_party_targets ${third_party_targets} ${out_targets})
|
||||
|
||||
#<FS:TS> We need to do this regardless
|
||||
#if(NOT USESYSTEMLIBS)
|
||||
if(NOT USESYSTEMLIBS)
|
||||
add_custom_target(
|
||||
stage_third_party_libs ALL
|
||||
DEPENDS ${third_party_targets}
|
||||
)
|
||||
#endif(NOT USESYSTEMLIBS)
|
||||
endif(NOT USESYSTEMLIBS)
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@
|
|||
include(Prebuilt)
|
||||
|
||||
#if (USESYSTEMLIBS)
|
||||
# set(BREAKPAD_EXCEPTION_HANDLER_FIND_REQUIRED ON)
|
||||
# include(FindGoogleBreakpad)
|
||||
set(BREAKPAD_EXCEPTION_HANDLER_FIND_REQUIRED ON)
|
||||
include(FindGoogleBreakpad)
|
||||
#else (USESYSTEMLIBS)
|
||||
use_prebuilt_binary(google_breakpad)
|
||||
if (DARWIN)
|
||||
|
|
|
|||
Loading…
Reference in New Issue