diff options
author | François Andriot <francois.andriot@free.fr> | 2014-10-07 01:00:47 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2014-10-07 01:34:09 +0200 |
commit | 84e3f9e06ba1b6a050e838ca55970f018e81b749 (patch) | |
tree | c0b5c29503c24bba5339eab5191a692ddbb674dc /tdecore/CMakeLists.txt | |
parent | e255a8ca6387cc1f100beffe39f889328e8f2a41 (diff) | |
download | tdelibs-84e3f9e06ba1b6a050e838ca55970f018e81b749.tar.gz tdelibs-84e3f9e06ba1b6a050e838ca55970f018e81b749.zip |
Allow conditional build of tdehwlib
Diffstat (limited to 'tdecore/CMakeLists.txt')
-rw-r--r-- | tdecore/CMakeLists.txt | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/tdecore/CMakeLists.txt b/tdecore/CMakeLists.txt index 508ca855b..85f5c99df 100644 --- a/tdecore/CMakeLists.txt +++ b/tdecore/CMakeLists.txt @@ -12,7 +12,12 @@ add_subdirectory( malloc ) add_subdirectory( network ) add_subdirectory( tdeconfig_compiler ) -add_subdirectory( tdehw ) + +if( WITH_TDEHWLIB ) + add_subdirectory( tdehw ) + set( TDEHW_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/tdehw ) + set( TDEHW_LIB tdehw-static ) +endif( WITH_TDEHWLIB ) if( WITH_LIBART ) add_subdirectory( svgicons ) @@ -25,7 +30,7 @@ include_directories( ${CMAKE_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/network - ${CMAKE_CURRENT_SOURCE_DIR}/tdehw + ${TDEHW_INCLUDE_DIR} ${CMAKE_SOURCE_DIR}/dcop ${CMAKE_SOURCE_DIR}/libltdl ${CMAKE_SOURCE_DIR}/tdefx @@ -128,10 +133,10 @@ set( ${target}_SRCS tde_add_library( ${target} SHARED AUTOMOC SOURCES ${${target}_SRCS} VERSION 14.0.0 - EMBED tdecorenetwork-static tdehw-static + EMBED tdecorenetwork-static ${TDEHW_LIB} LINK ltdlc-static ${KDESVGICONS} DCOP-shared tdefx-shared ${ZLIB_LIBRARIES} ${LIBIDN_LIBRARIES} ${XCOMPOSITE_LIBRARIES} ICE SM ${GAMIN_LIBRARIES} - ${LIBBFD_LIBRARIES} util + ${LIBBFD_LIBRARIES} ${LIB_UTIL} DEPENDENCIES dcopidl dcopidl2cpp DESTINATION ${LIB_INSTALL_DIR} ) |