summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Cord-Landwehr <cordlandwehr@kde.org>2015-09-27 15:59:40 (GMT)
committerAndreas Cord-Landwehr <cordlandwehr@kde.org>2015-09-27 15:59:40 (GMT)
commitb47c4da2fdddaac7178a35a37037430698239c8a (patch)
treebd34fd491795a74803ac94e111f47c546e258289
parent36dfb54d1fa79db80cf946e746a7f1c92d601d2d (diff)
Sort and wrap CMakeLists.
-rw-r--r--compoundviewer/CMakeLists.txt34
1 files changed, 20 insertions, 14 deletions
diff --git a/compoundviewer/CMakeLists.txt b/compoundviewer/CMakeLists.txt
index 58ac2b4..ee7109f 100644
--- a/compoundviewer/CMakeLists.txt
+++ b/compoundviewer/CMakeLists.txt
@@ -1,27 +1,33 @@
-include_directories( ${CMAKE_CURRENT_BINARY_DIR}/..
- ${EIGEN3_INCLUDE_DIR}
- ${OPENBABEL2_INCLUDE_DIR} ${OPENGL_INCLUDE_DIRS} ${PROJECT_SOURCE_DIR}/compoundviewer)
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}/..
+ ${EIGEN3_INCLUDE_DIR}
+ ${OPENBABEL2_INCLUDE_DIR} ${OPENGL_INCLUDE_DIRS}
+ ${PROJECT_SOURCE_DIR}/compoundviewer
+)
set(compoundviewer_SRCS
- openbabel2wrapper.cpp
- kalziumglwidget.cpp
+ openbabel2wrapper.cpp
+ kalziumglwidget.cpp
)
#add_subdirectory(widgets)
add_library(compoundviewer ${compoundviewer_SRCS})
-target_link_libraries(compoundviewer ${AvogadroLibs_LIBRARY_DIR}/libavogadro.so
- ${OPENBABEL2_LIBRARIES}
- KF5::I18n
- KF5::WidgetsAddons
- KF5::CoreAddons
- Qt5::OpenGL
+target_link_libraries(compoundviewer
+ KF5::I18n
+ KF5::WidgetsAddons
+ KF5::CoreAddons
+ Qt5::OpenGL
Qt5::Gui
-${OPENGL_LIBRARIES}
-
+ ${OPENBABEL2_LIBRARIES}
+ ${OPENGL_LIBRARIES}
+ ${AvogadroLibs_LIBRARY_DIR}/libavogadro.so
)
-set_target_properties(compoundviewer PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION})
+set_target_properties(compoundviewer PROPERTIES
+ VERSION ${GENERIC_LIB_VERSION}
+ SOVERSION ${GENERIC_LIB_SOVERSION}
+)
install(TARGETS compoundviewer ${INSTALL_TARGETS_DEFAULT_ARGS})