Allow building as monolithic app (no plugins) for easier developement.
[tagua/yd.git] / src / variants / chess / CMakeLists.txt
blob76caaaed242321b652efb03270c31a0485bc151f
1 set(taguachess_SRCS
2   animator.cpp
3   behaviour.cpp
4   bishop.cpp
5   castlingrules.cpp
6   chess.cpp
7   colors.cpp
8   icsverbose.cpp
9   king.cpp
10   knight.cpp
11   moveserializer.cpp
12   namer.cpp
13   pawn.cpp
14   rook.cpp
15   queen.cpp
16   san.cpp
17   state.cpp
18   validator.cpp
21 include_directories(${CMAKE_SOURCE_DIR}/src/)
23 if(MONOLITH)
24 kde4_add_library(taguachess SHARED ${taguachess_SRCS})
25 else(MONOLITH)
26 kde4_add_plugin(taguachess ${taguachess_SRCS})
27 endif(MONOLITH)
29 target_link_libraries(taguachess
30   taguacore
31   ${KDE4_KDECORE_LIBS}
34 install(TARGETS taguachess DESTINATION ${PLUGIN_INSTALL_DIR})
35 install(FILES tagua-chess.desktop DESTINATION ${SERVICES_INSTALL_DIR})