Skip to content

Commit

Permalink
cmp - implement extension processing
Browse files Browse the repository at this point in the history
  • Loading branch information
claudioperez committed Jul 16, 2021
1 parent 2ca8d48 commit 00ca972
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ set(OPS_EXTERNALS_DIR ${PROJECT_SOURCE_DIR}/OTHER/)
set(OPS_BUNDLED_DIR ${PROJECT_SOURCE_DIR}/OTHER/)
set(OPS_SRC_DIR ${PROJECT_SOURCE_DIR}/SRC/)
include(OpenSeesFunctions)

include(${PROJECT_SOURCE_DIR}/Conf.cmake)

set_property(CACHE OPS_FINAL_TARGET PROPERTY STRINGS
Expand Down Expand Up @@ -416,6 +417,17 @@ if(FMK)
)
endif()

#----------------------------
# Extensions
#----------------------------
message("OPS >>> Configuring OpenSees extensions")
foreach(extension IN LISTS OPS_Element_List OPS_Extension_List)
string(TOUPPER "${extension}" ext_flag)
set(ext_flag "_${ext_flag}")
message(" Adding definition '${ext_flag}'")
add_compile_definitions(${ext_flag})
endforeach()

#----------------------------
# Renderer
#----------------------------
Expand Down

0 comments on commit 00ca972

Please sign in to comment.