From: Ovidiu Mircescu Date: Wed, 16 Jan 2019 14:38:51 +0000 (+0100) Subject: Export cmake configuration. X-Git-Tag: v1.0~9 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=643784a93e9fb8748a443db7284117deb4652c9b;p=tools%2Fpy2cpp.git Export cmake configuration. --- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index e91516e..6889d06 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -45,7 +45,12 @@ SET(_py2cpp_headers ADD_LIBRARY(py2cpp ${_py2cpp_sources}) TARGET_LINK_LIBRARIES(py2cpp ${_link_LIBRARIES}) -INSTALL(TARGETS py2cpp LIBRARY DESTINATION lib) +TARGET_INCLUDE_DIRECTORIES(py2cpp PUBLIC + $ + $) + +INSTALL(TARGETS py2cpp EXPORT FindPy2cpp LIBRARY DESTINATION lib) INSTALL(FILES ${_py2cpp_headers} DESTINATION include/py2cpp) +INSTALL(EXPORT FindPy2cpp DESTINATION cmake) ADD_SUBDIRECTORY(Test)