1 set(QT_USE_QTOPENGL true)
3 include(${QT_USE_FILE})
5 ADD_DEFINITIONS(${QT_DEFINITIONS})
6 ADD_DEFINITIONS(-DQT_PLUGIN)
7 ADD_DEFINITIONS(-DQT_NO_DEBUG)
8 ADD_DEFINITIONS(-DQT_SHARED)
10 set(DESTINATION_DIR ${LIB_INSTALL_DIR}/avogadro/tools)
13 ${CMAKE_CURRENT_BINARY_DIR}
16 link_directories(${CMAKE_CURRENT_BINARY_DIR}/..)
19 set(drawtool_SRCS drawtool.cpp)
20 qt4_add_resources(drawtool_RC_SRCS drawtool.qrc)
21 qt4_automoc(${drawtool_SRCS})
22 ADD_LIBRARY(drawtool SHARED drawcommand.cpp drawtool.cpp navigate.cpp
24 TARGET_LINK_LIBRARIES(drawtool
25 ${OPENBABEL2_LIBRARIES}
29 INSTALL(TARGETS drawtool DESTINATION ${DESTINATION_DIR})
32 set(bondcentrictool_SRCS bondcentrictool.cpp)
33 qt4_add_resources(bondcentrictool_RC_SRCS bondcentrictool.qrc)
34 qt4_automoc(${bondcentrictool_SRCS})
35 ADD_LIBRARY(bondcentrictool SHARED skeletontree.cpp quaternion.cpp navigate.cpp
36 ${bondcentrictool_SRCS} ${bondcentrictool_RC_SRCS})
37 TARGET_LINK_LIBRARIES(bondcentrictool
38 ${OPENBABEL2_LIBRARIES}
43 INSTALL(TARGETS bondcentrictool DESTINATION ${DESTINATION_DIR})
46 set(bondcentrictool_SRCS bondcentrictool.cpp)
47 qt4_add_resources(bondcentrictool_RC_SRCS bondcentrictool.qrc)
48 qt4_automoc(${bondcentrictool_SRCS})
49 ADD_LIBRARY(bondcentrictool SHARED skeletontree.cpp quaternion.cpp navigate.cpp
50 ${bondcentrictool_SRCS} ${bondcentrictool_RC_SRCS})
51 TARGET_LINK_LIBRARIES(bondcentrictool
52 ${OPENBABEL2_LIBRARIES}
57 INSTALL(TARGETS bondcentrictool DESTINATION ${DESTINATION_DIR})
60 set(clickmeasuretool_SRCS clickmeasuretool.cpp)
61 qt4_add_resources(clickmeasuretool_RC_SRCS clickmeasuretool.qrc)
62 qt4_automoc(${clickmeasuretool_SRCS})
63 ADD_LIBRARY(clickmeasuretool SHARED navigate.cpp
64 ${clickmeasuretool_SRCS} ${clickmeasuretool_RC_SRCS} )
65 TARGET_LINK_LIBRARIES(clickmeasuretool
66 ${OPENBABEL2_LIBRARIES}
70 INSTALL(TARGETS clickmeasuretool DESTINATION ${DESTINATION_DIR})
73 set(selectrotatetool_SRCS selectrotatetool.cpp)
74 qt4_add_resources(selectrotatetool_RC_SRCS selectrotatetool.qrc)
75 qt4_automoc(${selectrotatetool_SRCS})
76 ADD_LIBRARY(selectrotatetool SHARED navigate.cpp
77 ${selectrotatetool_SRCS} ${selectrotatetool_RC_SRCS})
78 TARGET_LINK_LIBRARIES(selectrotatetool
79 ${OPENBABEL2_LIBRARIES}
84 INSTALL(TARGETS selectrotatetool DESTINATION ${DESTINATION_DIR})
87 set(autoopttool_SRCS autoopttool.cpp)
88 qt4_add_resources(autoopttool_RC_SRCS autoopttool.qrc)
89 qt4_automoc(${autoopttool_SRCS})
90 ADD_LIBRARY(autoopttool SHARED navigate.cpp
91 ${autoopttool_SRCS} ${autoopttool_RC_SRCS})
92 TARGET_LINK_LIBRARIES(autoopttool
93 ${OPENBABEL2_LIBRARIES}
98 INSTALL(TARGETS autoopttool DESTINATION ${DESTINATION_DIR})
101 set(navigatetool_SRCS navigatetool.cpp)
102 qt4_add_resources(navigatetool_RC_SRCS navigatetool.qrc)
103 qt4_automoc(${navigatetool_SRCS})
104 ADD_LIBRARY(navigatetool SHARED navigate.cpp eyecandy.cpp
105 ${navigatetool_SRCS} ${navigatetool_RC_SRCS})
106 TARGET_LINK_LIBRARIES(navigatetool
107 ${OPENBABEL2_LIBRARIES}
112 INSTALL(TARGETS navigatetool DESTINATION ${DESTINATION_DIR})
115 set(manipulatetool_SRCS manipulatetool.cpp)
116 qt4_add_resources(manipulatetool_RC_SRCS manipulatetool.qrc)
117 qt4_automoc(${manipulatetool_SRCS})
118 ADD_LIBRARY(manipulatetool SHARED eyecandy.cpp navigate.cpp
119 ${manipulatetool_SRCS} ${manipulatetool_RC_SRCS})
120 TARGET_LINK_LIBRARIES(manipulatetool
121 ${OPENBABEL2_LIBRARIES}
126 INSTALL(TARGETS manipulatetool DESTINATION ${DESTINATION_DIR})
129 set(autorotatetool_SRCS autorotatetool.cpp)
130 qt4_add_resources(autorotatetool_RC_SRCS autorotatetool.qrc)
131 qt4_automoc(${autorotatetool_SRCS})
132 ADD_LIBRARY(autorotatetool SHARED ${autorotatetool_SRCS} ${autorotatetool_RC_SRCS})
133 TARGET_LINK_LIBRARIES(autorotatetool
134 ${OPENBABEL2_LIBRARIES}
139 INSTALL(TARGETS autorotatetool DESTINATION ${DESTINATION_DIR})