Mercurial > hg > orthanc
comparison OrthancFramework/SharedLibrary/CMakeLists.txt @ 4097:99e2054d1e8d
fix unit tests for orthanc framework
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 01 Jul 2020 11:15:29 +0200 |
parents | 1c89208fbba9 |
children | 90eaf36e6adf |
comparison
equal
deleted
inserted
replaced
4096:d633e5bb7ba3 | 4097:99e2054d1e8d |
---|---|
460 include(ExternalProject) | 460 include(ExternalProject) |
461 | 461 |
462 if (CMAKE_TOOLCHAIN_FILE) | 462 if (CMAKE_TOOLCHAIN_FILE) |
463 # Take absolute path to the toolchain | 463 # Take absolute path to the toolchain |
464 get_filename_component(TMP ${CMAKE_TOOLCHAIN_FILE} REALPATH BASE ${CMAKE_SOURCE_DIR}/..) | 464 get_filename_component(TMP ${CMAKE_TOOLCHAIN_FILE} REALPATH BASE ${CMAKE_SOURCE_DIR}/..) |
465 list(APPEND Flags -DCMAKE_TOOLCHAIN_FILE=${TMP}) | 465 list(APPEND Flags |
466 -DCMAKE_TOOLCHAIN_FILE=${TMP} | |
467 -DLSB_CC=${LSB_CC} | |
468 -DLSB_CXX=${LSB_CXX} | |
469 ) | |
466 endif() | 470 endif() |
467 | 471 |
468 # Build the unit tests, linking them against the just-created | 472 # Build the unit tests, linking them against the just-created |
469 # "OrthancFramework" library | 473 # "OrthancFramework" library |
470 externalproject_add(UnitTests | 474 externalproject_add(UnitTests |