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
27 variants/xchess/move.cpp
28 variants/xchess/piece.cpp
31 variants/crazyhouse.cpp
34 hlvariant/chess/variant.cpp
35 hlvariant/chess/san.cpp
36 hlvariant/chess/icsverbose.cpp
37 hlvariant/chess/move.cpp
38 hlvariant/chess/gamestate.cpp
39 hlvariant/chess/piece.cpp
41 hlvariant/dummy/variant.cpp
43 hlvariant/crazyhouse/variant.cpp
44 hlvariant/crazyhouse/piece.cpp
46 hlvariant/minichess5/variant.cpp
48 hlvariant/shogi/variant.cpp
49 hlvariant/shogi/piece.cpp
51 hlvariant/minishogi/variant.cpp
117 # remove spurious xpressive warnings
118 set_source_files_properties(icsconnection.cpp
119 PROPERTIES COMPILE_FLAGS -Wno-extra)
121 kde4_add_ui_files(tagua_SRC
130 ui/pref_theme_page.ui
137 ${Boost_INCLUDE_DIRS}
138 ${CMAKE_CURRENT_BINARY_DIR}
145 if(NOT DEFINED COMPILER_HAVE_X86_MMX)
146 check_cxx_source_compiles(" int main() { __asm__(\"pxor %mm0, %mm0\") ; }" COMPILER_HAVE_X86_MMX)
147 endif(NOT DEFINED COMPILER_HAVE_X86_MMX)
149 if(NOT DEFINED COMPILER_HAVE_X86_SSE2)
150 check_cxx_source_compiles(" int main() { __asm__(\"xorpd %xmm0, %xmm0\"); }" COMPILER_HAVE_X86_SSE2)
151 endif(NOT DEFINED COMPILER_HAVE_X86_SSE2)
153 if(COMPILER_HAVE_X86_MMX)
154 list(APPEND tagua_SRC imageeffects_mmx.cpp)
155 set_source_files_properties(imageeffects_mmx.cpp PROPERTIES COMPILE_FLAGS -mmmx)
156 set_source_files_properties(imageeffects.cpp PROPERTIES COMPILE_FLAGS -DHAVE_X86_MMX)
157 endif(COMPILER_HAVE_X86_MMX)
159 if(COMPILER_HAVE_X86_SSE2)
160 list(APPEND tagua_SRC imageeffects_sse.cpp)
161 set_source_files_properties(imageeffects_sse.cpp PROPERTIES COMPILE_FLAGS -msse2)
162 set_source_files_properties(imageeffects.cpp PROPERTIES COMPILE_FLAGS -DHAVE_X86_SSE2)
163 endif(COMPILER_HAVE_X86_SSE2)
166 set(TAGUA_TARGET taguaprivate)
168 kde4_add_library(taguaprivate SHARED ${tagua_SRC})
169 kde4_add_executable(tagua main.cpp)
171 set(TAGUA_TARGET tagua)
172 kde4_add_executable(tagua main.cpp ${tagua_SRC})
178 ${Boost_LIBRARY_DIRS}
179 ${CMAKE_BINARY_DIR}/lib
181 target_link_libraries(${TAGUA_TARGET}
190 target_link_libraries(tagua taguaprivate)
191 install(TARGETS taguaprivate DESTINATION ${LIB_INSTALL_DIR})
195 INSTALL(TARGETS tagua DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)
196 install(FILES tagua.desktop DESTINATION ${XDG_APPS_INSTALL_DIR})
197 install(FILES taguaui.rc DESTINATION ${DATA_INSTALL_DIR}/tagua)