[Greater-commits] r237 - trunk/GREAT-ER-DB/impl/postgresql
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Wed Jun 22 12:41:42 CEST 2011
Author: aheinecke
Date: 2011-06-22 12:41:41 +0200 (Wed, 22 Jun 2011)
New Revision: 237
Modified:
trunk/GREAT-ER-DB/impl/postgresql/CMakeLists.txt
Log:
Prepare for also building the python module
currently an invalid python module will be produced because it will
not export the python entry point
Modified: trunk/GREAT-ER-DB/impl/postgresql/CMakeLists.txt
===================================================================
--- trunk/GREAT-ER-DB/impl/postgresql/CMakeLists.txt 2011-06-22 10:32:05 UTC (rev 236)
+++ trunk/GREAT-ER-DB/impl/postgresql/CMakeLists.txt 2011-06-22 10:41:41 UTC (rev 237)
@@ -42,6 +42,7 @@
endif (DAGREATER_ENABLE_TESTS)
find_package(Postgresql REQUIRED)
+find_package(PythonLibs)
find_program(ECPG_EXECUTABLE ecpg REQUIRED)
if (NOT ECPG_EXECUTABLE)
@@ -88,13 +89,24 @@
)
add_library(dagreater_pg SHARED ${dagreater_pg_SRCS})
-target_link_libraries(dagreater_pg ${POSTGRESQL_LIBRARIES} ${ECPG_LIBRARIES})
+target_link_libraries(dagreater_pg ${POSTGRESQL_LIBRARIES} ${ECPG_LIBRARIES})
+add_library(_dagreater_pg SHARED ${dagreater_pg_SRCS})
+target_link_libraries(_dagreater_pg ${POSTGRESQL_LIBRARIES}
+ ${ECPG_LIBRARIES}
+ ${PYTHON_LIBRARIES})
+set_target_properties(dagreater_pg PROPERTIES
+ VERSION ${CMAKE_DAGREATER_PG_VERSION_STRING}
+ SOVERSION ${CMAKE_DAGREATER_PG_VERSION_MAJOR}
+ LINK_INTERFACE_LIBRARIES ""
+ DEFINE_SYMBOL DAGREATER_PG_MAKEDLL
+)
set_target_properties(dagreater_pg PROPERTIES
VERSION ${CMAKE_DAGREATER_PG_VERSION_STRING}
SOVERSION ${CMAKE_DAGREATER_PG_VERSION_MAJOR}
LINK_INTERFACE_LIBRARIES ""
DEFINE_SYMBOL DAGREATER_PG_MAKEDLL
+ SUFFIX .pyd
)
install(TARGETS dagreater_pg ARCHIVE DESTINATION ${CMAKE_INSTALL_PREFIX}
More information about the Greater-commits
mailing list