mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
Correctly link in cmake
This commit is contained in:
parent
ccc8e0d876
commit
ad2eb08964
2 changed files with 9 additions and 10 deletions
|
@ -32,8 +32,7 @@ endif (GVERB_INCLUDE_DIRS)
|
|||
|
||||
if (GVERB_FOUND)
|
||||
message(STATUS "Found Gverb: ${GVERB_INCLUDE_DIRS}")
|
||||
else ()
|
||||
else (GVERB_FOUND)
|
||||
message(FATAL_ERROR "Could NOT find Gverb. Read ./interface/externals/gverb/readme.txt")
|
||||
endif ()
|
||||
endif (GVERB_FOUND)
|
||||
|
||||
endif ()
|
||||
|
|
|
@ -18,13 +18,6 @@ find_package(Qt5LinguistToolsMacros)
|
|||
# As Gverb is currently the only reverb library, it's required.
|
||||
find_package(Gverb REQUIRED)
|
||||
|
||||
if (GVERB_FOUND)
|
||||
file(GLOB GVERB_SRCS ${GVERB_SRC_DIRS}/*.c)
|
||||
include_directories(${GVERB_INCLUDE_DIRS})
|
||||
add_library(Gverb ${GVERB_SRCS})
|
||||
message(STATUS "Gverb srcs: ${GVERB_SRCS}")
|
||||
endif (GVERB_FOUND)
|
||||
|
||||
if (DEFINED ENV{JOB_ID})
|
||||
set(BUILD_SEQ $ENV{JOB_ID})
|
||||
else ()
|
||||
|
@ -177,6 +170,13 @@ if (QXMPP_FOUND AND NOT DISABLE_QXMPP AND WIN32)
|
|||
add_definitions(-DQXMPP_STATIC)
|
||||
endif ()
|
||||
|
||||
if (GVERB_FOUND)
|
||||
file(GLOB GVERB_SRCS ${GVERB_SRC_DIRS}/*.c)
|
||||
include_directories(${GVERB_INCLUDE_DIRS})
|
||||
add_library(gverb STATIC ${GVERB_SRCS})
|
||||
target_link_libraries(${TARGET_NAME} gverb)
|
||||
endif (GVERB_FOUND)
|
||||
|
||||
# include headers for interface and InterfaceConfig.
|
||||
include_directories("${PROJECT_SOURCE_DIR}/src" "${PROJECT_BINARY_DIR}/includes")
|
||||
|
||||
|
|
Loading…
Reference in a new issue