comparison CMakeLists.txt @ 1488:c8763b603b0e

flag for plugins
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 04 Aug 2015 10:54:13 +0200
parents 23083810d543
children 596927722403
comparison
equal deleted inserted replaced
1487:23083810d543 1488:c8763b603b0e
354 354
355 355
356 add_definitions( 356 add_definitions(
357 -DORTHANC_VERSION="${ORTHANC_VERSION}" 357 -DORTHANC_VERSION="${ORTHANC_VERSION}"
358 -DORTHANC_DATABASE_VERSION=${ORTHANC_DATABASE_VERSION} 358 -DORTHANC_DATABASE_VERSION=${ORTHANC_DATABASE_VERSION}
359 -DORTHANC_ENABLE_LOGGING=1
359 ) 360 )
360 361
361 list(LENGTH OPENSSL_SOURCES OPENSSL_SOURCES_LENGTH) 362 list(LENGTH OPENSSL_SOURCES OPENSSL_SOURCES_LENGTH)
362 if (${OPENSSL_SOURCES_LENGTH} GREATER 0) 363 if (${OPENSSL_SOURCES_LENGTH} GREATER 0)
363 add_library(OpenSSL STATIC ${OPENSSL_SOURCES}) 364 add_library(OpenSSL STATIC ${OPENSSL_SOURCES})
424 add_definitions(-DUNIT_TESTS_WITH_HTTP_CONNEXIONS=1) 425 add_definitions(-DUNIT_TESTS_WITH_HTTP_CONNEXIONS=1)
425 else() 426 else()
426 add_definitions(-DUNIT_TESTS_WITH_HTTP_CONNEXIONS=0) 427 add_definitions(-DUNIT_TESTS_WITH_HTTP_CONNEXIONS=0)
427 endif() 428 endif()
428 429
429 add_definitions(-DORTHANC_BUILD_UNIT_TESTS=1) 430 add_definitions(
431 -DORTHANC_BUILD_UNIT_TESTS=1
432 )
433
430 include(${CMAKE_SOURCE_DIR}/Resources/CMake/GoogleTestConfiguration.cmake) 434 include(${CMAKE_SOURCE_DIR}/Resources/CMake/GoogleTestConfiguration.cmake)
431 add_executable(UnitTests 435 add_executable(UnitTests
432 ${GTEST_SOURCES} 436 ${GTEST_SOURCES}
433 ${ORTHANC_UNIT_TESTS_SOURCES} 437 ${ORTHANC_UNIT_TESTS_SOURCES}
434 ) 438 )