mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
Add the option to specify the LIBDCDEVEL path.
Use cmake .. -DLIBDCDEVEL="../your/library" to specify where the libdc is, or leave it blank if you have it installed on the system. you can change the location later by running ccmake. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
7b60f96734
commit
7e1d8724c5
1 changed files with 8 additions and 1 deletions
|
@ -28,6 +28,13 @@ pkg_config_library(LIBSQLITE3 sqlite3)
|
|||
pkg_config_library(LIBGIT2 libgit2)
|
||||
pkg_config_library(LIBXSLT libxslt)
|
||||
|
||||
SET(LIBDCDEVEL "" CACHE STRING "libraries")
|
||||
IF(NOT (LIBDCDEVEL STREQUAL ""))
|
||||
cmake_policy(SET CMP0015 OLD)
|
||||
include_directories(${LIBDCDEVEL}/include )
|
||||
link_directories(${LIBDCDEVEL}/src/.libs)
|
||||
ENDIF()
|
||||
|
||||
STRING(COMPARE EQUAL "${${PROJECT_NAME}_SOURCE_DIR}" "${${PROJECT_NAME}_BINARY_DIR}" insource)
|
||||
GET_FILENAME_COMPONENT(PARENTDIR ${${PROJECT_NAME}_SOURCE_DIR} PATH)
|
||||
STRING(COMPARE EQUAL "${${PROJECT_NAME}_SOURCE_DIR}" "${PARENTDIR}" insourcesubdir)
|
||||
|
@ -185,4 +192,4 @@ ADD_DEPENDENCIES(subsurface_corelib version)
|
|||
ENABLE_TESTING()
|
||||
ADD_EXECUTABLE( TestUnitConversion tests/testunitconversion.cpp )
|
||||
TARGET_LINK_LIBRARIES( TestUnitConversion ${QT_LIBRARIES})
|
||||
ADD_TEST( NAME TestUnitConversion COMMAND TestUnitConversion)
|
||||
ADD_TEST( NAME TestUnitConversion COMMAND TestUnitConversion)
|
||||
|
|
Loading…
Reference in a new issue