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
33 hlvariant/dummy/variant.cpp
35 hlvariant/crazyhouse/variant.cpp
36 hlvariant/crazyhouse/piece.cpp
38 hlvariant/minichess5/variant.cpp
40 hlvariant/shogi/variant.cpp
41 hlvariant/shogi/piece.cpp
43 hlvariant/minishogi/variant.cpp
109 # remove spurious xpressive warnings
110 set_source_files_properties(icsconnection.cpp
111 PROPERTIES COMPILE_FLAGS -Wno-extra)
113 kde4_add_ui_files(tagua_SRC
122 ui/pref_theme_page.ui
129 ${Boost_INCLUDE_DIRS}
130 ${CMAKE_CURRENT_BINARY_DIR}
137 if(NOT DEFINED COMPILER_HAVE_X86_MMX)
138 check_cxx_source_compiles(" int main() { __asm__(\"pxor %mm0, %mm0\") ; }" COMPILER_HAVE_X86_MMX)
139 endif(NOT DEFINED COMPILER_HAVE_X86_MMX)
141 if(NOT DEFINED COMPILER_HAVE_X86_SSE2)
142 check_cxx_source_compiles(" int main() { __asm__(\"xorpd %xmm0, %xmm0\"); }" COMPILER_HAVE_X86_SSE2)
143 endif(NOT DEFINED COMPILER_HAVE_X86_SSE2)
145 if(COMPILER_HAVE_X86_MMX)
146 list(APPEND tagua_SRC imageeffects_mmx.cpp)
147 set_source_files_properties(imageeffects_mmx.cpp PROPERTIES COMPILE_FLAGS -mmmx)
148 set_source_files_properties(imageeffects.cpp PROPERTIES COMPILE_FLAGS -DHAVE_X86_MMX)
149 endif(COMPILER_HAVE_X86_MMX)
151 if(COMPILER_HAVE_X86_SSE2)
152 list(APPEND tagua_SRC imageeffects_sse.cpp)
153 set_source_files_properties(imageeffects_sse.cpp PROPERTIES COMPILE_FLAGS -msse2)
154 set_source_files_properties(imageeffects.cpp PROPERTIES COMPILE_FLAGS -DHAVE_X86_SSE2)
155 endif(COMPILER_HAVE_X86_SSE2)
158 set(TAGUA_TARGET taguaprivate)
160 kde4_add_library(taguaprivate SHARED ${tagua_SRC})
161 kde4_add_executable(tagua main.cpp)
163 set(TAGUA_TARGET tagua)
164 kde4_add_executable(tagua main.cpp ${tagua_SRC})
170 ${Boost_LIBRARY_DIRS}
171 ${CMAKE_BINARY_DIR}/lib
173 target_link_libraries(${TAGUA_TARGET}
182 target_link_libraries(tagua taguaprivate)
183 install(TARGETS taguaprivate DESTINATION ${LIB_INSTALL_DIR})
187 INSTALL(TARGETS tagua DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)
188 install(FILES tagua.desktop DESTINATION ${XDG_APPS_INSTALL_DIR})
189 install(FILES taguaui.rc DESTINATION ${DATA_INSTALL_DIR}/tagua)