Skip to content

Commit

Permalink
Link to chemkit-io and chemkit-md
Browse files Browse the repository at this point in the history
This updates the CMakeLists.txt file for the chemkit
python module to link to chemkit-io and chemkit-md.
  • Loading branch information
kylelutz committed Dec 13, 2011
1 parent 074189f commit 9b4105a
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions src/chemkit/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,9 @@
find_package(PythonLibs REQUIRED)
include_directories(${PYTHON_INCLUDE_PATH})

# find boost
find_package(Boost REQUIRED)
include_directories(${Boost_INCLUDE_DIRS})

# find eigen3
find_package(Eigen3 REQUIRED)
include_directories(${EIGEN3_INCLUDE_DIR})

# find qt
find_package(Qt4 4.6 COMPONENTS QtCore REQUIRED)
set(QT_DONT_USE_QTGUI TRUE)
include(${QT_USE_FILE})
# find chemkit
find_package(Chemkit COMPONENTS io md)
include_directories(${CHEMKIT_INCLUDE_DIRS})

set(SOURCES
atom.pxd
Expand Down Expand Up @@ -50,7 +41,7 @@ add_custom_command(OUTPUT chemkit.cpp
# build library
add_library(chemkit-python SHARED chemkit.cpp)
set_target_properties(chemkit-python PROPERTIES OUTPUT_NAME "chemkit" PREFIX "")
target_link_libraries(chemkit-python chemkit)
target_link_libraries(chemkit-python ${CHEMKIT_LIBRARIES})

# find python site-packages directory for installation
execute_process(COMMAND ${PYTHON_EXECUTABLE}
Expand Down

0 comments on commit 9b4105a

Please sign in to comment.