Ce serveur Gitlab sera éteint le 30 juin 2020, pensez à migrer vos projets vers les serveurs gitlab-research.centralesupelec.fr et gitlab-student.centralesupelec.fr !

Commit c1a4bebf authored by Benoit Bayol's avatar Benoit Bayol

added install commands in cmakelist.txt and instructions in readme

parent b81f25d2
......@@ -42,3 +42,15 @@ foreach(example
endif()
endforeach()
INSTALL(DIRECTORY "source/" DESTINATION "include" COMPONENT headers FILES_MATCHING PATTERN "*.h")
INSTALL(TARGETS opennn DESTINATION "lib"
RUNTIME DESTINATION bin COMPONENT dllopennn
LIBRARY DESTINATION lib COMPONENT libopennn
ARCHIVE DESTINATION lib COMPONENT aropenn
)
INSTALL(TARGETS tinyxml2 DESTINATION "lib"
RUNTIME DESTINATION bin COMPONENT dlltinyxml2
LIBRARY DESTINATION lib COMPONENT libtinyxml2
ARCHIVE DESTINATION lib COMPONENT artinyxml2
)
......@@ -7,3 +7,11 @@ Don't hesitate to ask me some support in the issues page.
I have set up the configuration for compiling everything in a build folder
but you will have to launch each example in their data folder by giving a
relative in path of the ../../../build/example
cmake commands for compilation and installation with specific software:
mkdir build
cd build
cmake .. -DCMAKE_CXX_COMPILER=gcc -DCMAKE_BUILD_TYPE=Release
-DCMAKE_INSTALL_PREFIX=$HOME/libs/opennn/1.0
make install
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