This might be the "right way" to fix the issue - mark our exported classes as
[kdeedu-porting.git] / kalzium / libavogadro-kalzium / src / tools / CMakeLists.txt
blobcf7de41685f680daf23d19e85ba5c49756498c7e
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)
12 include_directories(
13         ${CMAKE_CURRENT_BINARY_DIR}
16 link_directories(${CMAKE_CURRENT_BINARY_DIR}/..)
18 ### drawtool
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
23                     ${drawtool_RC_SRCS} )
24 TARGET_LINK_LIBRARIES(drawtool
25     ${OPENBABEL2_LIBRARIES}
26     ${QT_LIBRARIES}
27     ${OPENGL_LIBRARIES}
28     avogadro-kalzium)
29 INSTALL(TARGETS drawtool DESTINATION ${DESTINATION_DIR})
31 ### bondcentrictool
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}
39   ${QT_LIBRARIES}
40   ${OPENGL_LIBRARIES}
41   avogadro-kalzium
43 INSTALL(TARGETS bondcentrictool DESTINATION ${DESTINATION_DIR})
45 ### bondcentrictool
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}
53   ${QT_LIBRARIES}
54   ${OPENGL_LIBRARIES}
55   avogadro-kalzium
57 INSTALL(TARGETS bondcentrictool DESTINATION ${DESTINATION_DIR})
59 ### clickmeasuretool
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}
67     ${QT_LIBRARIES}
68     ${OPENGL_LIBRARIES}
69     avogadro-kalzium)
70 INSTALL(TARGETS clickmeasuretool DESTINATION ${DESTINATION_DIR})
72 ### selectrotatetool
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}
80         ${QT_LIBRARIES}
81         ${OPENGL_LIBRARIES}
82         avogadro-kalzium
84 INSTALL(TARGETS selectrotatetool DESTINATION ${DESTINATION_DIR})
86 ### autoopttool
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}
94         ${QT_LIBRARIES}
95         ${OPENGL_LIBRARIES}
96         avogadro-kalzium
98 INSTALL(TARGETS autoopttool DESTINATION ${DESTINATION_DIR})
100 ### navigatetool
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}
108         ${QT_LIBRARIES}
109         ${OPENGL_LIBRARIES}
110         avogadro-kalzium
112 INSTALL(TARGETS navigatetool DESTINATION ${DESTINATION_DIR})
114 ### manipulatetool
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}
122         ${QT_LIBRARIES}
123     ${OPENGL_LIBRARIES}
124         avogadro-kalzium
126 INSTALL(TARGETS manipulatetool DESTINATION ${DESTINATION_DIR})
128 ### autorotatetool
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}
135         ${QT_LIBRARIES}
136         ${OPENGL_LIBRARIES}
137         avogadro-kalzium
139 INSTALL(TARGETS autorotatetool DESTINATION ${DESTINATION_DIR})