Hello,
I have following cmake file, I am using cmake 3.2
SET_SOURCE_FILES_PROPERTIES(${MYSRC}/myapi.i PROPERTIES CPLUSPLUS ON)
SET_SOURCE_FILES_PROPERTIES(${MYSRC}/myapi.i PROPERTIES SWIG_FLAGS
"-ignoremissing")
SWIG_ADD_MODULE(myapi_swig python ${MYSRC}/myapi.i}
set(MYLIBSRC_FILES
${MYSRC}/file1.cpp
${MYSRC}/file2.cpp
)
add_library(atlas_client ${MYLIBSRC_FILES} )
Now I want to add the cpp file that swig created to list of files that go into
my library? Basically what I want to do is include file myapiPYTHON_wrap.cxx
that swig generates to MYLIBSRC_FILES
I see that currently by default SWIG ADD MODULE is creating a .so file, which I
don’t want to create.
Would appreciate any help/pointers.
-Subodh
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to support the CMake community. For more
information on each offering, please visit:
CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake