]> SALOME platform Git repositories - tools/py2cpp.git/commitdiff
Salome HOME
Export cmake configuration.
authorOvidiu Mircescu <ovidiu.mircescu@edf.fr>
Wed, 16 Jan 2019 14:38:51 +0000 (15:38 +0100)
committerOvidiu Mircescu <ovidiu.mircescu@edf.fr>
Wed, 16 Jan 2019 14:38:51 +0000 (15:38 +0100)
src/CMakeLists.txt

index e91516e2100eeae9276cb7ab5198dedb88c87d44..6889d06dd4c30399789aa1689613ce76914b091a 100644 (file)
@@ -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
+                          $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src>
+                          $<INSTALL_INTERFACE:${INSTALL_CMAKE_DIR}/include>)
+
+INSTALL(TARGETS py2cpp EXPORT FindPy2cpp LIBRARY DESTINATION lib)
 INSTALL(FILES ${_py2cpp_headers} DESTINATION include/py2cpp)
+INSTALL(EXPORT FindPy2cpp DESTINATION cmake)
 
 ADD_SUBDIRECTORY(Test)