2 controllers/editgame.cpp
3 controllers/abstract.cpp
4 controllers/editposition.cpp
13 luaapi/genericwrapper.cpp
18 entities/gameentity.cpp
19 entities/userentity.cpp
20 entities/examinationentity.cpp
22 entities/engineentity.cpp
23 entities/icsentity.cpp
26 variants/xchess/move.cpp
27 variants/xchess/piece.cpp
30 variants/crazyhouse.cpp
33 hlvariant/chess/variant.cpp
34 hlvariant/chess/san.cpp
35 hlvariant/chess/move.cpp
36 hlvariant/chess/gamestate.cpp
37 hlvariant/chess/piece.cpp
102 # remove spurious xpressive warnings
103 set_source_files_properties(icsconnection.cpp
104 PROPERTIES COMPILE_FLAGS -Wno-extra)
106 kde4_add_ui_files(tagua_SRC
115 ui/pref_theme_page.ui
122 ${Boost_INCLUDE_DIRS}
123 ${CMAKE_CURRENT_BINARY_DIR}
130 if(NOT DEFINED COMPILER_HAVE_X86_MMX)
131 check_cxx_source_compiles(" int main() { __asm__(\"pxor %mm0, %mm0\") ; }" COMPILER_HAVE_X86_MMX)
132 endif(NOT DEFINED COMPILER_HAVE_X86_MMX)
134 if(NOT DEFINED COMPILER_HAVE_X86_SSE2)
135 check_cxx_source_compiles(" int main() { __asm__(\"xorpd %xmm0, %xmm0\"); }" COMPILER_HAVE_X86_SSE2)
136 endif(NOT DEFINED COMPILER_HAVE_X86_SSE2)
138 if(COMPILER_HAVE_X86_MMX)
139 list(APPEND tagua_SRC imageeffects_mmx.cpp)
140 set_source_files_properties(imageeffects_mmx.cpp PROPERTIES COMPILE_FLAGS -mmmx)
141 set_source_files_properties(imageeffects.cpp PROPERTIES COMPILE_FLAGS -DHAVE_X86_MMX)
142 endif(COMPILER_HAVE_X86_MMX)
144 if(COMPILER_HAVE_X86_SSE2)
145 list(APPEND tagua_SRC imageeffects_sse.cpp)
146 set_source_files_properties(imageeffects_sse.cpp PROPERTIES COMPILE_FLAGS -msse2)
147 set_source_files_properties(imageeffects.cpp PROPERTIES COMPILE_FLAGS -DHAVE_X86_SSE2)
148 endif(COMPILER_HAVE_X86_SSE2)
151 set(TAGUA_TARGET taguaprivate)
153 kde4_add_library(taguaprivate SHARED ${tagua_SRC})
154 kde4_add_executable(tagua main.cpp)
156 set(TAGUA_TARGET tagua)
157 kde4_add_executable(tagua main.cpp ${tagua_SRC})
163 ${Boost_LIBRARY_DIRS}
164 ${CMAKE_BINARY_DIR}/lib
166 target_link_libraries(${TAGUA_TARGET}
175 target_link_libraries(tagua taguaprivate)
176 install(TARGETS taguaprivate DESTINATION ${LIB_INSTALL_DIR})
180 INSTALL(TARGETS tagua DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)
181 install(FILES tagua.desktop DESTINATION ${XDG_APPS_INSTALL_DIR})
182 install(FILES taguaui.rc DESTINATION ${DATA_INSTALL_DIR}/tagua)