Allow building as monolithic app (no plugins) for easier developement.
[tagua.git] / src / variants / chess5x5 / CMakeLists.txt
blobadff377cdde57c8e9e9ed0c2da1991da34170fe9
1 set(taguachess5x5_SRCS
2   chess5x5.cpp
5 # we don't need taguachess includes!
6 include_directories(${CMAKE_SOURCE_DIR}/src/)
8 if(MONOLITH)
9 kde4_add_library(taguachess5x5 SHARED ${taguachess5x5_SRCS})
10 else(MONOLITH)
11 kde4_add_plugin(taguachess5x5 ${taguachess5x5_SRCS})
12 endif(MONOLITH)
14 # we don't need to link to taguachess!
15 target_link_libraries(taguachess5x5
16   taguacore
17   ${KDE4_KDECORE_LIBS}
20 install(TARGETS taguachess5x5 DESTINATION ${PLUGIN_INSTALL_DIR})
21 install(FILES tagua-chess5x5.desktop DESTINATION ${SERVICES_INSTALL_DIR})