start moving to another architecture

This commit is contained in:
arcan1s
2014-01-26 03:49:43 +04:00
parent 473d195ea9
commit 7c874ca96d
170 changed files with 3170 additions and 14746 deletions

View File

@ -1,9 +1,3 @@
cmake_minimum_required (VERSION 2.8)
cmake_policy (SET CMP0003 OLD)
cmake_policy (SET CMP0011 NEW)
cmake_policy (SET CMP0015 NEW)
# set project name
set (PROJECT mathmech)
# set additional cmake file
@ -11,18 +5,13 @@ include (${PROJECT}.cmake)
# additional options
OPTION (WITH_DEBUG_MODE "Build with debug mode" OFF)
option (WITH_DEBUG_MODE "Build with debug mode" OFF)
# set libraries
set (LIBRARIES)
foreach (LIBRARY ${LIBRARIES})
find_library ("${LIBRARY}_FOUND" ${LIBRARY})
message (STATUS "Check the ${LIBRARY} is installed: " ${${LIBRARY}_FOUND})
if ("${${LIBRARY}_FOUND}" STREQUAL "${LIBRARY}_FOUND-NOTFOUND")
message (STATUS "Adding library sources")
add_subdirectory (../${LIBRARY} lib/${LIBRARY})
endif ()
endforeach ()
set (LIBRARIES "")
foreach (LIBRARY ${LIBRARIES})
add_subdirectory (../${LIBRARY} lib/${LIBRARY})
endforeach ()
# additional targets
set (TARGETS "")

View File

@ -63,10 +63,7 @@ target_link_libraries (${PROJECT} ${LIBRARIES} ${QT_LIBRARIES} ${QT_QTMAIN_LIBRA
# install properties
install (TARGETS ${PROJECT} DESTINATION bin)
if (CMAKE_SYSTEM_NAME MATCHES Linux)
install (FILES ../mathmech.desktop
DESTINATION share/applications/)
install (FILES ../mathmech-logo.png
DESTINATION share/pixmaps/)
install (FILES ../mathmech.png
DESTINATION share/icons/hicolor/32x32/apps/)
install (FILES ../mathmech.desktop DESTINATION share/applications/)
install (FILES ../mathmech-logo.png DESTINATION share/pixmaps/)
install (FILES ../mathmech.png DESTINATION share/icons/hicolor/32x32/apps/)
endif ()