2 controllers/editgame.cpp
3 controllers/abstract.cpp
4 controllers/editposition.cpp
5 controllers/entitytoken.cpp
14 luaapi/genericwrapper.cpp
19 entities/gameentity.cpp
20 entities/userentity.cpp
21 entities/examinationentity.cpp
23 entities/engineentity.cpp
24 entities/icsentity.cpp
26 # hlvariant/chess/variant.cpp
27 # hlvariant/chess/san.cpp
28 # hlvariant/chess/icsverbose.cpp
29 # hlvariant/chess/move.cpp
30 # hlvariant/chess/gamestate.cpp
31 # hlvariant/chess/piece.cpp
32 # hlvariant/chess/actions.cpp
34 # hlvariant/dummy/variant.cpp
36 # hlvariant/crazyhouse/variant.cpp
37 # hlvariant/crazyhouse/piece.cpp
39 # hlvariant/minichess5/variant.cpp
41 # hlvariant/shogi/variant.cpp
42 # hlvariant/shogi/piece.cpp
43 # hlvariant/shogi/shogiactions.cpp
45 # hlvariant/minishogi/variant.cpp
47 # hlvariant/sho-shogi/variant.cpp
49 # hlvariant/tori-shogi/variant.cpp
50 # hlvariant/tori-shogi/piece.cpp
105 namedsprite_utils.cpp
111 animationsettings.cpp
114 # remove spurious xpressive warnings
115 set_source_files_properties(icsconnection.cpp
116 PROPERTIES COMPILE_FLAGS -Wno-extra)
118 kde4_add_ui_files(tagua_SRC
127 ui/pref_theme_page.ui
134 ${Boost_INCLUDE_DIRS}
136 ${CMAKE_CURRENT_BINARY_DIR}
143 if(NOT DEFINED COMPILER_HAVE_X86_MMX)
144 check_cxx_source_compiles(" int main() { __asm__(\"pxor %mm0, %mm0\") ; }" COMPILER_HAVE_X86_MMX)
145 endif(NOT DEFINED COMPILER_HAVE_X86_MMX)
147 if(NOT DEFINED COMPILER_HAVE_X86_SSE2)
148 check_cxx_source_compiles(" int main() { __asm__(\"xorpd %xmm0, %xmm0\"); }" COMPILER_HAVE_X86_SSE2)
149 endif(NOT DEFINED COMPILER_HAVE_X86_SSE2)
151 if(COMPILER_HAVE_X86_MMX)
152 list(APPEND tagua_SRC imageeffects_mmx.cpp)
153 set_source_files_properties(imageeffects_mmx.cpp PROPERTIES COMPILE_FLAGS -mmmx)
154 set_source_files_properties(imageeffects.cpp PROPERTIES COMPILE_FLAGS -DHAVE_X86_MMX)
155 endif(COMPILER_HAVE_X86_MMX)
157 if(COMPILER_HAVE_X86_SSE2)
158 list(APPEND tagua_SRC imageeffects_sse.cpp)
159 set_source_files_properties(imageeffects_sse.cpp PROPERTIES COMPILE_FLAGS -msse2)
160 set_source_files_properties(imageeffects.cpp PROPERTIES COMPILE_FLAGS -DHAVE_X86_SSE2)
161 endif(COMPILER_HAVE_X86_SSE2)
164 set(TAGUA_TARGET taguaprivate)
166 kde4_add_library(taguaprivate SHARED ${tagua_SRC})
167 kde4_add_executable(tagua main.cpp)
169 set(TAGUA_TARGET tagua)
170 kde4_add_executable(tagua main.cpp ${tagua_SRC})
173 add_subdirectory(core)
174 add_subdirectory(variants)
178 ${Boost_LIBRARY_DIRS}
179 ${CMAKE_BINARY_DIR}/lib
181 target_link_libraries(${TAGUA_TARGET}
195 target_link_libraries(tagua taguaprivate)
196 install(TARGETS taguaprivate DESTINATION ${LIB_INSTALL_DIR})
200 INSTALL(TARGETS tagua DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)
201 install(FILES tagua.desktop DESTINATION ${XDG_APPS_INSTALL_DIR})
202 install(FILES taguaui.rc DESTINATION ${DATA_INSTALL_DIR}/tagua)