Commit de2b46b1 authored by Jean Meurice's avatar Jean Meurice
Browse files

Armadillo include tweak

parent f56b4c00
Pipeline #494648 passed with stage
in 6 minutes and 41 seconds
...@@ -118,8 +118,14 @@ public class GeneratorCPP implements EMAMGenerator { ...@@ -118,8 +118,14 @@ public class GeneratorCPP implements EMAMGenerator {
//cMakeConfig.addCMakeCommand("target_link_libraries(armadillo -static)"); //cMakeConfig.addCMakeCommand("target_link_libraries(armadillo -static)");
cMakeConfig.addCMakeCommand("# Add simple Wrapper for header-only armadillo"); cMakeConfig.addCMakeCommand("# Add simple Wrapper for header-only armadillo");
cMakeConfig.addCMakeCommand("if(ARMADILLO_PATH)");
cMakeConfig.addCMakeCommand(" message( STATUS \"Found ARMADILLO_PATH directory: ${ARMADILLO_PATH}\")");
cMakeConfig.addCMakeCommand("else()");
cMakeConfig.addCMakeCommand(" message( FATAL_ERROR \"This project requires the ARMADILLO project. Specify using -DARMADILLO_PATH=path/to/armadillo\" )");
cMakeConfig.addCMakeCommand("endif()");
cMakeConfig.addCMakeCommand("");
cMakeConfig.addCMakeCommand("add_library(armadillo INTERFACE)"); cMakeConfig.addCMakeCommand("add_library(armadillo INTERFACE)");
cMakeConfig.addCMakeCommand("target_include_directories(armadillo INTERFACE $ENV{ARMADILLO_PATH}/include)"); cMakeConfig.addCMakeCommand("target_include_directories(armadillo INTERFACE ${ARMADILLO_PATH}/include)");
cMakeConfig.addCMakeCommand("target_compile_definitions(armadillo INTERFACE ARMA_DONT_USE_WRAPPER)"); cMakeConfig.addCMakeCommand("target_compile_definitions(armadillo INTERFACE ARMA_DONT_USE_WRAPPER)");
cMakeConfig.addCMakeCommand("set(LIBS ${LIBS} armadillo)"); cMakeConfig.addCMakeCommand("set(LIBS ${LIBS} armadillo)");
} else { } else {
......
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