Commit 6063aba8 authored by Jan Möbius's avatar Jan Möbius

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@5657 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 064af1b7
include (common)
find_package (OpenGL)
find_package (GLUT)
find_package (GLEW)
ftgl ()
include_directories (
..
${CMAKE_SOURCE_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${OPENGL_INCLUDE_DIR}
${GLEW_INCLUDE_DIR}
${GLUT_INCLUDE_DIR}
)
link_directories (
${GLEW_LIBRARY_DIR}
)
set (directories
..
../Core
../Logging
../Scripting
../Scripting/scriptPrototypes
../Scripting/scriptWrappers
../SimpleOpt
../widgets/aboutWidget
../widgets/addEmptyWidget
../widgets/loggerWidget
../widgets/coreWidget
../widgets/helpBrowser
../widgets/loadWidget
../widgets/optionsWidget
../widgets/PluginDialog
../widgets/viewModeWidget
)
append_files (headers "*.hh" ${directories})
append_files (sources "*.cc" ${directories})
append_files (ui "*.ui" ${directories})
drop_templates (sources)
qt4_autouic (uic_targets ${ui})
qt4_automoc (moc_targets ${headers})
add_executable (OpenFlipper ${uic_targets} ${sources} ${headers} ${moc_targets})
set_target_props (OpenFlipper)
target_link_libraries (OpenFlipper
OpenMeshCore
OpenMeshTools
ACG
PluginLib
${QT_LIBRARIES}
${OPENGL_LIBRARIES}
${GLEW_LIBRARY}
${GLUT_LIBRARIES}
${FTGL_LIBS}
)
install (TARGETS OpenFlipper DESTINATION ${OPENFLIPPER_BINDIR})
if (WIN32)
add_custom_command (TARGET OpenFlipper POST_BUILD
COMMAND ${CMAKE_COMMAND} -E
copy_if_different
${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/OpenFlipper.exe
${CMAKE_BINARY_DIR}/Build)
endif ()
add_custom_command(TARGET OpenFlipper POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/../Shaders ${CMAKE_BINARY_DIR}/Build/${OPENFLIPPER_DATADIR}/Shaders
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/../Textures ${CMAKE_BINARY_DIR}/Build/${OPENFLIPPER_DATADIR}/Textures
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/../Icons ${CMAKE_BINARY_DIR}/Build/${OPENFLIPPER_DATADIR}/Icons
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/../Fonts ${CMAKE_BINARY_DIR}/Build/${OPENFLIPPER_DATADIR}/Fonts
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/../Docs ${CMAKE_BINARY_DIR}/Build/${OPENFLIPPER_DATADIR}/Docs
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/../Help ${CMAKE_BINARY_DIR}/Build/${OPENFLIPPER_DATADIR}/Help
)
install(DIRECTORY
${CMAKE_CURRENT_SOURCE_DIR}/../Shaders
${CMAKE_CURRENT_SOURCE_DIR}/../Textures
${CMAKE_CURRENT_SOURCE_DIR}/../Icons
${CMAKE_CURRENT_SOURCE_DIR}/../Fonts
${CMAKE_CURRENT_SOURCE_DIR}/../Docs
${CMAKE_CURRENT_SOURCE_DIR}/../Help
DESTINATION ${OPENFLIPPER_DATADIR}
)
\ No newline at end of file
include (common)
find_package (OpenGL)
find_package (GLUT)
find_package (GLEW)
ftgl ()
include_directories (
..
${CMAKE_SOURCE_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${OPENGL_INCLUDE_DIR}
${GLEW_INCLUDE_DIR}
${GLUT_INCLUDE_DIR}
)
link_directories (
${GLEW_LIBRARY_DIR}
)
set (directories
../BasePlugin
../ACGHelper
../common
../common/bsp
../INIFile
../widgets/glWidget
)
if (WIN32)
add_definitions (
-DPLUGINLIBDLL
)
endif ()
append_files (headers "*.hh" ${directories})
append_files (sources "*.cc" ${directories})
append_files (ui "*.ui" ${directories})
append_files_recursive (headers "*.hh" ${CMAKE_SOURCE_DIR}/ObjectTypes)
append_files_recursive (sources "*.cc" ${CMAKE_SOURCE_DIR}/ObjectTypes)
drop_templates (sources)
qt4_autouic (uic_targets ${ui})
qt4_automoc (moc_targets ${headers})
add_library (PluginLib SHARED ${uic_targets} ${sources} ${headers} ${moc_targets})
set_target_props (PluginLib)
target_link_libraries (PluginLib
OpenMeshCore
OpenMeshTools
ACG
${QT_LIBRARIES}
${OPENGL_LIBRARIES}
${GLEW_LIBRARY}
${GLUT_LIBRARIES}
${FTGL_LIBS}
)
install (TARGETS PluginLib DESTINATION ${OPENFLIPPER_LIBDIR})
if (WIN32)
add_custom_command (TARGET PluginLib POST_BUILD
COMMAND ${CMAKE_COMMAND} -E
copy_if_different
${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/PluginLib.dll
${CMAKE_BINARY_DIR}/Build)
endif ()
\ No newline at end of file
This diff is collapsed.
......@@ -90,7 +90,7 @@
</environments>
</other>
<general>
<activedir>Plugin-TemplateModeling</activedir>
<activedir>Plugin-Info</activedir>
</general>
</kdevcustomproject>
<kdevdebugger>
......
<?xml version = '1.0' encoding = 'UTF-8'?>
<!DOCTYPE KDevPrjSession>
<KDevPrjSession>
<DocsAndViews NumberOfDocuments="6" >
<DocsAndViews NumberOfDocuments="5" >
<Doc0 NumberOfViews="1" URL="file:///data/home1/moebius/projects/OpenFlipper/ObjectTypes/MeshObject/MeshObjectT.hh" >
<View0 Encoding="" line="27" Type="Source" />
<View0 Encoding="" Type="Source" />
</Doc0>
<Doc1 NumberOfViews="1" URL="file:///data/home1/moebius/projects/OpenFlipper/ACG/Scenegraph/PolyLineNodeT.hh" >
<View0 Encoding="" line="120" Type="Source" />
<View0 Encoding="" line="127" Type="Source" />
</Doc1>
<Doc2 NumberOfViews="1" URL="file:///data/home1/moebius/projects/OpenFlipper/OpenFlipper/BasePlugin/LoadSaveInterface.hh" >
<View0 Encoding="" line="133" Type="Source" />
<Doc2 NumberOfViews="1" URL="file:///data/home1/moebius/projects/OpenFlipper/OpenFlipper/widgets/coreWidget/CoreWidget.cc" >
<View0 Encoding="" line="114" Type="Source" />
</Doc2>
<Doc3 NumberOfViews="1" URL="file:///data/home1/moebius/projects/OpenFlipper/OpenFlipper/OpenFlipper.cc" >
<View0 Encoding="" line="141" Type="Source" />
<Doc3 NumberOfViews="1" URL="file:///data/home1/moebius/projects/OpenFlipper/OpenFlipper/BasePlugin/LoadSaveInterface.hh" >
<View0 Encoding="" line="77" Type="Source" />
</Doc3>
<Doc4 NumberOfViews="1" URL="file:///data/home1/moebius/projects/OpenFlipper/OpenFlipper/Core/ParseObj.cc" >
<View0 Encoding="" line="153" Type="Source" />
<Doc4 NumberOfViews="1" URL="file:///data/home1/moebius/projects/OpenFlipper/Plugin-Info/InfoPlugin.cc" >
<View0 Encoding="" line="248" Type="Source" />
</Doc4>
<Doc5 NumberOfViews="1" URL="file:///data/home1/moebius/projects/OpenFlipper/OpenFlipper/Core/PluginLoader.cc" >
<View0 Encoding="" line="509" Type="Source" />
</Doc5>
</DocsAndViews>
<pluginList>
<kdevdebugger>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment