[d9bbba]: src / CMakeLists.txt Maximize Restore History

Download this file

CMakeLists.txt    120 lines (96 with data), 2.9 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
# build the libs anyway
add_subdirectory(lib)
if(KDEVPLATFORM_ENABLED)
add_subdirectory(core)
add_subdirectory(math)
add_subdirectory(gui)
add_subdirectory(interfaces)
add_subdirectory(plugins)
add_subdirectory(kdevplugins)
#add_subdirectory(context)
#add_subdirectory(flowparts)
#add_subdirectory(micro)
#add_subdirectory(mechanics)
#add_subdirectory(electronics)
#add_subdirectory(languages)
#add_subdirectory(drawparts)
#add_subdirectory(contexthelp)
#add_subdirectory(math)
endif(KDEVPLATFORM_ENABLED)
if(KDEVPLATFORM_ENABLED)
include_directories(
${KDE4_INCLUDES}
${QT_INCLUDES}
${CMAKE_SOURCE_DIR}/src
${CMAKE_SOURCE_DIR}/src/drawparts
${CMAKE_SOURCE_DIR}/src/electronics
${CMAKE_SOURCE_DIR}/src/electronics/components
${CMAKE_SOURCE_DIR}/src/electronics/simulation
${CMAKE_SOURCE_DIR}/src/flowparts
${CMAKE_SOURCE_DIR}/src/gui
${CMAKE_SOURCE_DIR}/src/gui/itemeditor
${CMAKE_SOURCE_DIR}/src/languages
${CMAKE_SOURCE_DIR}/src/mechanics
${CMAKE_SOURCE_DIR}/src/micro
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
)
#####################################################################
# DBUS
#####################################################################
set(dbus_SRCS
# dbus/RootDBusHandler.cpp
)
#####################################################################
# LIBKTECHLAB
#####################################################################
set(ktechlablib_LIB_SRCS
${dbus_SRCS}
)
########### next target ###############
SET(ktechlab_SRCS
ktechlabideextension.cpp
main.cpp
simulationmanager.cpp
)
#kde4_automoc( ${ktechlab_SRCS} )
#kde4_add_library(ktechlablib SHARED ${ktechlablib_LIB_SRCS})
#target_link_libraries(ktechlablib
# ${KDE4_KUTILS_LIBS}
# ${KDE4_KDEUI_LIBS}
#)
kde4_add_executable(ktechlab ${ktechlab_SRCS})
target_link_libraries( ktechlab
${KDE4_KDEUI_LIBS}
${KDE4_KIO_LIBS}
${KDEVPLATFORM_SHELL_LIBRARIES}
# ktechlablib
ktlinterfaces
# languages gui micro flowparts
# mechanics electronics elements components drawparts
# itemeditor math khtml kutils ${GPSIM_LIBRARY} ktexteditor
kio plasma
# kdeprint
)
install(TARGETS ktechlab DESTINATION bin)
########### install files ###############
install(FILES microbe.xml DESTINATION share/apps/katepart/syntax)
install(FILES
ktechlabrc
ktechlabui.rc
ktechlabcircuitui.rc
ktechlabitemviewui.rc
ktechlabmechanicsui.rc
ktechlabtextui.rc
ktechlabkateui.rc
DESTINATION ${DATA_INSTALL_DIR}/ktechlab
)
install(FILES ktechlab.desktop DESTINATION share/applnk/Development)
# XML mime types
set( SHARED_MIME_INFO_MINIMUM_VERSION "0.30" )
find_package( SharedMimeInfo )
if( SHARED_MIME_INFO_FOUND )
install(FILES ktechlab.xml DESTINATION ${XDG_MIME_INSTALL_DIR} )
update_xdg_mimetypes( ${XDG_MIME_INSTALL_DIR} )
endif( SHARED_MIME_INFO_FOUND )
endif(KDEVPLATFORM_ENABLED)