Skip to content
Permalink
Browse files

fix lenny build (cmake <2.8)

  • Loading branch information
jef-n committed Jul 28, 2011
1 parent efb7988 commit f3d5387edb309935c956acda6ae5e1f52523286c
Showing with 12 additions and 7 deletions.
  1. +12 −7 python/pyspatialite/CMakeLists.txt
@@ -1,12 +1,5 @@

SET (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PYTHON_OUTPUT_DIRECTORY}/pyspatialite)
SET (CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PYTHON_OUTPUT_DIRECTORY}/pyspatialite)
file(COPY
lib/__init__.py
lib/dbapi2.py
lib/dump.py
DESTINATION
${PYTHON_OUTPUT_DIRECTORY}/pyspatialite)


INCLUDE_DIRECTORIES(
@@ -60,6 +53,18 @@ IF (WIN32)
SET_TARGET_PROPERTIES(pyspatialite PROPERTIES SUFFIX ".pyd")
ENDIF (WIN32)

FOREACH(file
lib/__init__.py
lib/dbapi2.py
lib/dump.py
)
ADD_CUSTOM_COMMAND(TARGET pyspatialite
POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy ${file} ${PYTHON_OUTPUT_DIRECTORY}/pyspatialite/${file}
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
)
ENDFOREACH(file)

INSTALL(TARGETS pyspatialite DESTINATION "${PYTHON_SITE_PACKAGES_DIR}/pyspatialite")
INSTALL(FILES
lib/__init__.py

0 comments on commit f3d5387

Please sign in to comment.
You can’t perform that action at this time.