EBATINCA / RadiotherapyTransformsIEC

Library for handling transfoms of radiotherapy equipment as defined in the IEC 61217 standard
1 stars 1 forks source link

hard coded windows path and qSlicerExport in cmakelists #1

Open ferdymercury opened 7 hours ago

ferdymercury commented 7 hours ago

Hi @cpinter @TrosnyogoSzakoca thanks for this first version!

I am trying to build the software on Linux.

I get this error: there is something hard-coded in the CMakeLists for windows users that shouldn't be there. Also, when building without Slicer, there shouldn't be any qSlicerExport file being generated?

CMake Error: File c:/d/Slicer/CMake/qSlicerExport.h.in does not exist.
CMake Error at CMakeLists.txt:71 (configure_file):
  configure_file Problem configuring file

Thanks for your work!

ferdymercury commented 7 hours ago

Probably, these part of the CMake should be under an "if" that checks if it's a standalone build or not:

And the hardcoded path should be amended.

configure_file(
  c:/d/Slicer/CMake/qSlicerExport.h.in
  ${CMAKE_CURRENT_BINARY_DIR}/${MY_EXPORT_HEADER_PREFIX}Export.h
  )

set(dynamicHeaders
  "${dynamicHeaders};${CMAKE_CURRENT_BINARY_DIR}/${MY_EXPORT_HEADER_PREFIX}Export.h")