Commit 2d6d68cc authored by Innocent De Marchi's avatar Innocent De Marchi

Imported Upstream version 5.1.1

parents
SET(CMAKE_INSTALL_PREFIX /$(CURDIR)/usr)
# set project's name
PROJECT( glpeces )
cmake_minimum_required(VERSION 2.8)
# with SET() command you can change variables or define new ones
# here we define SAMPLE_SRCS variable that contains a list of all .cpp files
# note that we don't need \ at the end of line
SET( glpeces_SRCS
./scr/main.cpp
./scr/configuracio.cpp
./scr/funcions.cpp
./scr/rellotge.cpp
./scr/creaconcurs.cpp
./scr/desafigura.cpp
./scr/frmPrincipal.cpp
./scr/conjuntpeces.cpp
./scr/peca.cpp
./scr/comprovafigures.cpp
)
# another list, this time it includes all header files that should be treated with moc
SET( glpeces_MOC_HDRS
./scr/configuracio.h
./scr/constants.h
./scr/funcions.h
./scr/rellotge.h
./scr/creaconcurs.h
./scr/desafigura.h
./scr/ui_frmDesaFigura.h
./scr/frmPrincipal.h
./scr/conjuntpeces.h
./scr/peca.h
./scr/comprovafigures.h
)
# some .ui files
SET( glpeces_UIS
./scr/frmDesaFigura.ui
)
# and finally an resource file
# SET( glpeces_RCS
# resources.qrc
# )
# enable warnings
ADD_DEFINITIONS( -Wall )
# by default only QtCore and QtGui modules are enabled
# other modules must be enabled like this:
SET( QT_USE_QT3SUPPORT TRUE )
SET( QT_USE_QTXML TRUE )
set(QT_USE_QTNETWORK true)
set(QT_USE_TESTLIB true)
set(QT_USE_QTSVG true)
set(QT_USE_QTDBUS true)
# this command finds Qt4 libraries and sets all required variables
# note that it's Qt4, not QT4 or qt4
FIND_PACKAGE( Qt4 REQUIRED )
# add some useful macros and variables
# (QT_USE_FILE is a variable defined by FIND_PACKAGE( Qt4 ) that contains a path to CMake script)
INCLUDE( ${QT_USE_FILE} )
# this command will generate rules that will run rcc on all files from glpeces_RCS
# in result glpeces_RC_SRCS variable will contain paths to files produced by rcc
#QT4_ADD_RESOURCES( glpeces_RC_SRCS ${glpeces_RCS} )
# this will run uic on .ui files:
QT4_WRAP_UI( glpeces_UI_HDRS ${glpeces_UIS} )
# and finally this will run moc:
QT4_WRAP_CPP( glpeces_MOC_SRCS ${glpeces_MOC_HDRS} )
# we need this to be able to include headers produced by uic in our code
# (CMAKE_BINARY_DIR holds a path to the build directory, while INCLUDE_DIRECTORIES() works just like INCLUDEPATH from qmake)
INCLUDE_DIRECTORIES( ${CMAKE_BINARY_DIR} )
# binaries are placed in the root directory as the source code
SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${glpeces_SOURCE_DIR})
# here we instruct CMake to build "glpeces" executable from all of the source files
ADD_EXECUTABLE( glpeces ${glpeces_SRCS} ${glpeces_MOC_SRCS} ${glpeces_UI_HDRS} )
# last thing we have to do is to tell CMake what libraries our executable needs,
# luckily FIND_PACKAGE prepared QT_LIBRARIES variable for us:
TARGET_LINK_LIBRARIES( glpeces ${QT_LIBRARIES}
${QT_QTMAIN_LIBRARY}
${QT_QTTEST_LIBRARY})
# install executable and translation files
install_targets(/games glpeces)
# INSTALL( TARGETS ${PROGNAME} DESTINATION bin )
install(DIRECTORY fig/ DESTINATION share/games/glpeces/figures)
install(DIRECTORY locales/ DESTINATION share/games/glpeces/locales)
install(DIRECTORY images/ DESTINATION share/games/glpeces/images)
install(DIRECTORY help/ DESTINATION share/games/glpeces/help)
install(DIRECTORY auto/ DESTINATION share/games/glpeces/auto)
install(FILES menu/glpeces.6.gz DESTINATION share/man/man6)
install(FILES menu/glpeces.desktop DESTINATION share/applications)
install(FILES glpeces.xpm DESTINATION share/pixmaps)
#uninstall
CONFIGURE_FILE( "${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in" "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake" IMMEDIATE @ONLY)
ADD_CUSTOM_TARGET(uninstall "${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake" )
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
News in 5.1 version (March, 2015)
- Add cmake build system.
- Changed the system of pieces to adapt to touchscreens.
- New tool button to flip the pieces.
- Other minor changes on the source code:
* Automatic calculation of the difficulty
of the figures generated by the program.
* Add new figures (24,395 in total).
News in 5.0 version (March, 2012)
- Added 1 new tangram (39 in total).
- Added over 10,300 new figures (more 18,000 in total).
- Automatic generation of new figures.
- Customization of the color of the pieces.
- OS2 version (thanks to Elbert Pol).
- New Sugar Activity (for Java version).
News in 4.1 version (April, 2011)
- Added 5 new tangram (38 in total).
- Added over 2700 new figures (more 7300 in total).
- New stop function.
- Resizable main window.
- OS2 version (thanks to Elbert Pol).
\ No newline at end of file
# -----------------------------------------------
# - cmake_uninstall.cmake.in
# File that provides "make uninstall" target
# We use the file 'install_manifest.txt'
# -----------------------------------------------
IF(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt" )
MESSAGE(FATAL_ERROR "Cannot find install manifest: \"@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt\"" )
ENDIF(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt" )
FILE(READ "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt" files)
STRING(REGEX REPLACE "\n" ";" files "${files}" )
FOREACH(file ${files})
MESSAGE(STATUS "Uninstalling \"$ENV{DESTDIR}${file}\"" )
IF(EXISTS "$ENV{DESTDIR}${file}" )
EXEC_PROGRAM(
"@CMAKE_COMMAND@" ARGS "-E remove \"$ENV{DESTDIR}${file}\""
OUTPUT_VARIABLE rm_out
RETURN_VALUE rm_retval
)
IF(NOT "${rm_retval}" STREQUAL 0)
MESSAGE(FATAL_ERROR "Problem when removing \"$ENV{DESTDIR}${file}\"" )
ENDIF(NOT "${rm_retval}" STREQUAL 0)
ELSE(EXISTS "$ENV{DESTDIR}${file}" )
MESSAGE(STATUS "File \"$ENV{DESTDIR}${file}\" does not exist." )
ENDIF(EXISTS "$ENV{DESTDIR}${file}" )
ENDFOREACH(file)
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Espantaocells.001
58 3 244.31 301.234 4.71239 0 74 22.2094 336.783 5.41052 1 87 221.196 247.542 5.49779 1 88 261.742 94.6183 4.36332 1 89 189.79 58.2989 5.93412 1 90 129.476 309.437 3.17868e-09 1 90 289.748 368.679 -2.00713 0 91 262.162 36.6687 2.00713 1 91 232.426 22.8026 -1.13446 0 91 320.748 456.018 2.35619 1 92 232.007 184.531 1.5708 1 93 41.1196 149.646 2.61799 0 94 357.371 171.827 3.22886 0 95 106.911 137.868 2.26893 0
1 1 0
Quadrat.001
58 3 156.601 191.4 2.35619 0 74 130.501 165.3 5.49779 1 87 78.3006 182.7 2.35619 1 88 60.9 8.70023 2.35619 1 89 139.2 11.6002 3.14159 1 90 174 58.0002 2.35619 0 90 139.2 46.4003 -0.785398 0 91 87.0002 63.8003 0.785398 1 91 17.4002 40.6002 3.92699 1 91 17.4008 168.201 -0.785398 0 92 52.2003 104.4 0.785398 1 93 17.4008 133.401 3.92699 1 94 156.6 133.4 0.785398 0 95 191.4 121.8 2.35619 1
1 3 0
Rectangle.001
58 3 270.68 98.4297 3.14159 0 74 270.681 61.5185 -1.04809e-06 1 87 221.466 36.9113 3.14159 1 88 184.555 49.215 3.14159 1 89 237.871 106.632 3.92699 1 90 213.264 131.239 4.73658e-07 0 90 82.0248 16.405 3.14159 0 91 41.0123 131.239 5.76865e-07 0 91 131.239 41.0125 4.71239 1 91 164.049 106.632 1.5708 1 92 110.733 110.733 1.5708 1 93 65.6197 106.632 4.71239 1 94 16.4052 57.4172 1.5708 0 95 49.2152 73.8222 3.14159 1
1 3 0
Quadrats.001
58 3 307.592 98.4296 3.14159 0 74 307.592 61.5184 -1.1077e-06 1 87 258.377 36.9112 3.14159 1 88 221.466 49.2149 3.14159 1 89 274.782 106.632 3.92699 1 90 250.175 131.239 4.73658e-07 0 90 82.025 16.4053 3.14159 0 91 41.013 131.24 5.76865e-07 0 91 131.24 41.0124 4.71239 1 91 200.96 106.632 1.5708 1 92 110.733 110.734 1.5708 1 93 65.6203 106.633 4.71239 1 94 16.4052 57.4177 1.5708 0 95 49.2152 73.8227 3.14159 1
1 3 1
Triangles.001
58 3 49.2149 123.037 4.71239 0 74 86.1259 123.037 1.5708 1 87 110.733 73.822 4.71239 1 88 184.555 233.77 3.14159 1 89 237.871 291.187 3.92699 1 90 213.263 315.794 4.73658e-07 0 90 164.049 65.6195 1.57079 0 91 41.0122 315.794 5.76865e-07 0 91 131.239 225.567 4.71239 1 91 164.049 291.187 1.5708 1 92 110.733 295.288 1.5708 1 93 65.6196 291.186 4.71239 1 94 205.061 131.239 3.90362e-06 0 95 221.466 98.4293 1.57079 1
1 3 1
Trapezi.001
58 3 49.2146 123.037 4.71239 0 74 86.1256 123.037 1.5708 1 87 110.733 73.822 4.71239 1 88 184.555 49.2145 3.14159 1 89 237.871 106.632 3.92699 1 90 213.263 131.239 4.73658e-07 0 90 311.693 65.6199 1.57079 0 91 278.882 106.632 -1.5708 0 91 188.656 16.4049 3.14159 1 91 164.049 106.632 1.5708 1 92 258.377 36.9113 3.93391e-06 1 93 254.275 82.0248 3.14159 1 94 352.705 131.24 3.90362e-06 0 95 369.11 98.4296 1.57079 1
1 3 0
Paralelogram.001
58 3 49.2146 24.6074 -1.57079 1 74 86.1255 24.6075 1.5708 0 87 110.733 73.8222 -1.57079 0 88 184.555 49.2149 3.14159 1 89 237.871 106.632 3.92699 1 90 213.263 131.24 4.73658e-07 0 90 311.693 65.6203 1.57079 0 91 278.882 106.633 -1.5708 0 91 188.656 16.4053 3.14159 1 91 164.049 106.632 1.5708 1 92 258.377 36.9117 3.93391e-06 1 93 254.275 82.0252 3.14159 1 94 352.705 131.24 3.90362e-06 0 95 369.11 98.4299 1.57079 1
1 3 0
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment