Moved code around to make possible to compile the C part alone.
The C code should be compilable without the need to compile the Gui part, too. This is expecially good for unit testing as we can test all the algorithms without a window appearing out of nowhere. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
committed by
Dirk Hohndel
parent
9598462830
commit
55d010bad8
@@ -102,6 +102,8 @@ SET(SUBSURFACE_CORE_LIB_SRCS
|
||||
linux.c
|
||||
#gettextfrommoc should be added because we are using it on the c-code.
|
||||
gettextfromc.cpp
|
||||
#dirk ported some core functionality to c++.
|
||||
qthelper.cpp
|
||||
)
|
||||
|
||||
#the interface, in C++
|
||||
@@ -192,7 +194,7 @@ ADD_DEPENDENCIES(subsurface_corelib version)
|
||||
|
||||
ENABLE_TESTING()
|
||||
ADD_EXECUTABLE( TestUnitConversion tests/testunitconversion.cpp )
|
||||
TARGET_LINK_LIBRARIES( TestUnitConversion ${QT_LIBRARIES})
|
||||
TARGET_LINK_LIBRARIES( TestUnitConversion ${QT_LIBRARIES} ${SUBSURFACE_LINK_LIBRARIES} -lzip -ldivecomputer subsurface_corelib)
|
||||
ADD_TEST( NAME TestUnitConversion COMMAND TestUnitConversion)
|
||||
|
||||
ADD_EXECUTABLE( TestProfile tests/testprofile.cpp )
|
||||
|
||||
Reference in New Issue
Block a user