set(MG_COMPONENT ${MG_COMPONENT_COMMON}) if (NOT MG_COMMON_SUBSET_ONLY) # As these are bindings to the Web API, the libs need to sit at the same level as where HttpHandler and WebSupport resides set_install_subdir("webserverextensions/") else (NOT MG_COMMON_SUBSET_ONLY) # For the common subset we want all the libs to be collected into a single place set_install_subdir("") endif (NOT MG_COMMON_SUBSET_ONLY) # Do not allow for the possibility of undefined symbols if( CMAKE_COMPILER_IS_GNUCXX ) if (NEED_LIBRT) set ( CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-as-needed -Wl,--no-undefined -lc -lrt ${CMAKE_SHARED_LINKER_FLAGS}") else (NEED_LIBRT) set ( CMAKE_SHARED_LINKER_FLAGS "-Wl,--as-needed -Wl,--no-undefined -lc ${CMAKE_SHARED_LINKER_FLAGS}") endif (NEED_LIBRT) endif( CMAKE_COMPILER_IS_GNUCXX ) find_package(SWIG 4.1) set(IMAKE_TOOL ${CMAKE_CURRENT_BINARY_DIR}/IMake/IMake) file(COPY "SwigCommon" DESTINATION ${CMAKE_CURRENT_BINARY_DIR}) add_subdirectory(IMake) add_subdirectory(Managed) add_subdirectory(Bindings)