Hello all,
I want to interface VTK and ITK. Hence I copied the required 4 files (2 txx
and 2 cpp) in InsightApplications/Auxilliary/vtk to a common source
directory which I want to include in all my other project source
directories. In doing this, I am using the following CMake commands:
SET(IMPORTED_SRCS
${Common1_SOURCE_DIR}/src/*.cpp
${Common2_SOURCE_DIR}/src/Common.cpp
${Common2_SOURCE_DIR}/src/*.txx
)
SET(IMPORTED_HDRS
${Common1_SOURCE_DIR}/include/*.h
${Common2_SOURCE_DIR}/include/*.h
)
FILE(GLOB SRCS "src/*.cpp" "src/*.c" "src/*.txx" ${IMPORTED_SRCS})
FILE(GLOB HDRS "include/*.h" ${IMPORTED_HDRS})
ADD_EXECUTABLE(Project1 ${SRCS} ${HDRS})
However, this is not helping me to include Common2 source and header files
in Project1's respective files. What am I doing wrong here?
Thanks,
Prathamesh
_______________________________________________
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