Hi there,
What am I doing wrong in my use of GET_TARGET_PROPERTY(... LOCATION)
in the following:
...
VTK_WRAP_JAVA3(${VTKGDCM_NAME}Java vtkgdcmJAVA_SRCS "${vtkgdcm_SRCS}")
ADD_LIBRARY(${VTKGDCM_NAME}Java SHARED ${vtkgdcmJAVA_SRCS})
TARGET_LINK_LIBRARIES(${VTKGDCM_NAME}Java ${VTKGDCM_NAME})
GET_TARGET_PROPERTY(VTKGDCMJava ${VTKGDCM_NAME}Java LOCATION)
ADD_CUSTOM_COMMAND(
OUTPUT ${LIBRARY_OUTPUT_PATH}/vtkgdcm.jar
COMMAND ${bla}
DEPENDS ${VTKGDCMJava}
)
ADD_CUSTOM_TARGET(VTKGDCMJavaJar ALL
DEPENDS ${LIBRARY_OUTPUT_PATH}/vtkgdcm.jar
)
...
I am getting an error:
Scanning dependencies of target VTKGDCMJavaJar
make[2]: *** No rule to make target `bin/libvtkgdcmJava.so', needed by
`bin/vtkgdcm.jar'. Stop.
make[1]: *** [Utilities/VTK/CMakeFiles/VTKGDCMJavaJar.dir/all] Error 2
make: *** [all] Error 2
Thanks,
--
Mathieu
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake