Fix naming of libs for CppUnit

Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
This commit is contained in:
FrancisANDRE
2016-01-08 09:05:47 +01:00
parent c8a78f02d0
commit f1b88218f2
2 changed files with 5 additions and 2 deletions

View File

@@ -57,6 +57,7 @@ endif()
include(PocoMacros)
# Allow enabling and disabling components
option(ENABLE_CPPUNIT "Enable the CppUnit" ON)
option(ENABLE_XML "Enable the XML" ON)
option(ENABLE_JSON "Enable the JSON" ON)
option(ENABLE_MONGODB "Enable MongoDB" ON)
@@ -138,8 +139,9 @@ include(DefinePlatformSpecifc)
# Collect the built libraries and include dirs, the will be used to create the PocoConfig.cmake file
set(Poco_COMPONENTS "")
if (ENABLE_TESTS)
if (ENABLE_CPPUNIT)
add_subdirectory(CppUnit)
list(APPEND Poco_COMPONENTS "CppUnit")
endif ()
add_subdirectory(Foundation)

View File

@@ -1,4 +1,5 @@
set(LIBNAME "PocoCppUnit")
set(LIBNAME "CppUnit")
set(POCO_LIBNAME "Poco${LIBNAME}")
# Sources
file(GLOB SRCS_G "src/*.cpp")