mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 02:42:48 +00:00
solid: build static library only when tests are to be run
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
060ce58f09
commit
c781bcc203
2 changed files with 4 additions and 5 deletions
|
@ -332,9 +332,11 @@ install(FILES org.freedesktop.PowerManagement.Inhibit.xml DESTINATION ${DBUS_INT
|
|||
|
||||
########### static lib for tests ###############
|
||||
|
||||
if(ENABLE_TESTING)
|
||||
add_library(solid_static STATIC ${solid_LIB_SRCS})
|
||||
|
||||
target_link_libraries(solid_static ${QT_QTCORE_LIBRARY} ${QT_QTDBUS_LIBRARY} ${QT_QTXML_LIBRARY} ${QT_QTGUI_LIBRARY} ${solid_OPTIONAL_LIBS})
|
||||
endif()
|
||||
|
||||
########### install files ###############
|
||||
|
||||
|
|
|
@ -1,6 +1,3 @@
|
|||
set( EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR} )
|
||||
|
||||
|
||||
########### fakehardwaretest ###############
|
||||
|
||||
set(fakehardwaretest_SRCS fakehardwaretest.cpp )
|
||||
|
|
Loading…
Add table
Reference in a new issue