fix building

This commit is contained in:
arcan1s
2014-01-26 04:39:33 +04:00
parent 7c874ca96d
commit e64c310693
75 changed files with 200 additions and 5495 deletions

View File

@ -1,6 +1,6 @@
# set files
file (GLOB SOURCES *.c)
file (GLOB HEADERS *.h)
file (GLOB HEADERS $*.h)
# set library
if (CMAKE_COMPILER_IS_GNUCXX)
@ -10,12 +10,13 @@ else ()
endif ()
# message
message (STATUS "${PROJECT} SOURCES: ${SOURCES}")
message (STATUS "${PROJECT} HEADERS: ${HEADERS}")
message (STATUS "${SUBPROJECT} SOURCES: ${SOURCES}")
message (STATUS "${SUBPROJECT} HEADERS: ${HEADERS}")
# link libraries and compile
add_library (${PROJECT} SHARED ${SOURCES} ${HEADERS})
target_link_libraries (${PROJECT} ${ADDITIONAL_LIB})
add_library (${SUBPROJECT} SHARED ${SOURCES} ${HEADERS})
target_link_libraries (${SUBPROJECT} ${ADDITIONAL_LIB})
# install properties
install (TARGETS ${PROJECT} DESTINATION lib)
install (TARGETS ${SUBPROJECT} DESTINATION lib)
install (DIRECTORY ${SUBPROJECT_INCLUDE_DIR}/ DESTINATION include/)

View File

@ -1,70 +1,6 @@
/**
* @file
*/
/**
* @mainpage libmm
* @image latex ./logo.png
*
* @section intro_sec Introduction
*
* <b>About this program</b>:
* <ul>
* <li>Library for mathmech
* </ul>
*
* <b>Developer</b>:
* <ul>
* <li>Evgeniy Alekseev aka arcanis <pre><esalexeev (at) gmail (dot) com></pre>
*</ul>
* <b>License</b>:
* <ul>
* <li>GPL
* </ul>
*
* @page Install
*
* @section Requirements Requirements
* The application mmlib requires the following external stuff:
* - cmake >= 2.8
* - gcc >= 4.8
*
* @section How-To How to install
*
* @subsection Linux Linux
* @code
* mkdir build && cd build
* cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release ../
* make
* make install
* @endcode
*
* @subsection Windows Windows
* @code
* create project file using 'cmake'
* compile project
* @endcode
* You may also download compiled executable file for Win_x86.
*
* @page Changelog
* V.1.1.1 (2013-09-03)
* <ul>
* <li>optimization
* </ul>
* V.1.1.0 (2013-09-02)
* <ul>
* <li>added help window
* <li>added help docs
* <li>small bug fixes
* </ul>
* V.1.0.3 (2013-08-30)
* <ul>
* <li>bug fixes
* </ul>
* V.1.0.1 (2013-07-27)
* <ul>
* <li>initial release
* </ul>
*/
#include <math.h>
#include <stdio.h>